My problem is that I receive for example a date in a concatenated format:
Ex: 20050728
And I have to retrieve it in a readable format through my xslt.
Ex. 28 July 2005
I also have a similar question regards time.
Ex: 0004
To be displayed as 00:04
How is this done?
xslt has some formatting functions available
If you can use XPath 2.0, see this function reference.
Use the XPath
substring()
function as shown in the solution below:When the above transformation is applied on this XML document:
the wanted result is produced: