How to Use XSLT to convert Epoch time
Posted on 2010-09-13
I'm new to XSLT; we're starting to use version 2.
In my 3rd party XML document, there are recurring <TIME> tags. The <TIME> can be under the <CUSTOMER>, the <ORDER>, the <BACKORDER> etc. The value of <TIME> is an epoch time value.
I would like to either:
a) transform all of the values of <TIME> to format mm-dd-yyyy or
b) add another node, say <READABLETIME>, with the mm-dd-yyyy value, and place it after (or before) the <TIME>
Can someone please show me how to structure this? I would prefer not to have to know all of the possible paths to <TIME>.