time conversion(XS:time?) using XSLT 1.0


I am trying to do the follg. using XSLT 1.0

My input document contains time in hhmmss(military time) format. I want my xslt to transform this into XML time, w/t respect UTC, as given below in the example: (I am guessing that xs:time should be able to identify the current timezone, for e.g. -5 or -4 for EST).

Does anyone know how to do this? (although, I can do this using string function, to concatenate a fixed offset, it will change by an hour during daylight savings time and this will cause error)


<?xml version="1.0" encoding="UTF-8"?> 132000


<?xml version="1.0" encoding="UTF-8"?> 13:20:00-05:00


I don’t believe you can do this in XSLT 1.0 except by using the string functions as you mentioned. If your XSLT processor supports extensions, you might take a look at the EXSLT date/time module (http://www.exslt.org/date/index.html) to see if something in there might help.