How to correctly use XSD Duration?
问题 I am trying to store a time interval in my XML, which is defined by my XSD as duration in my XSD file. I am not sure how to use it though, the following is what I am attempting: <duration>PT5H30M</duration> This is equal to 5 hours and 30 minutes. I was thinking that when the XSLT file transformed the XML into HTML, then it would convert the duration to a time format? Should it maybe be used like this?: <duration duration="PT5H30M"></duration> Here is where I get the duration in my XSLT file: