Convert a number to timespan in XSL
Posted on 2006-07-19
I am receiving an XML data island from a web application that I then convert to Microsoft Project XML via an xsl stylesheet I am creating. One of the tags called "Duration" that the Microsoft Project requires is of type "timespan". An acceptable entry for this is:
Which I think corresponds to 10 days. (At least that what my duration value is in MSProject.)
But anyway, in the data island I am receiving has the duration as just an integer, like 10,15, 20, etc in days. How can I convert it to this type of format in my xsl sheet? I don't really know what PT80H0M0S means.