Home. 
.

transparent

transparent

transparent

Altova Mailing List Archives


Timestamp formatting in XSLT

From: jai <jaiganesh.kannan@-----.--->
To: NULL
Date: 10/23/2009 5:08:00 AM
Hello,

I have a dateTime format as an XML element (<PDFTIMESTAMP>2009-10-09
13:10:58.00000</PDFTIMESTAMP>). This dateTime format is not accepted
by XSLT 2.0 using Saxon 9.

I came to know that 2009-10-09T13:10:58.00000 is proper format for
dateTime.

I actually do a sort using PDFTIMESTAMP inside a for-each loop as
below:

<xsl:for-each-group select="current-group()" group-by="RECEIPTTYPE">

               <xsl:sort select="max(PDFTIMESTAMP/xs:dateTime(.)"
order="descending"/>

In xs:dateTime(.), the issue is comming as format of current dateTime
is not correct. If the XML element's value cannot be corrected to
acceptable format, what can i do to convert the the improper dateTime
comming in xs:dateTime(.) to work?

Any help is much appreciated.

Thanks!!

Jai


transparent
Print
Mail
Like It
Disclaimer
.

These Archives are provided for informational purposes only and have been generated directly from the Altova mailing list archive system and are comprised of the lists set forth on www.altova.com/list/index.html. Therefore, Altova does not warrant or guarantee the accuracy, reliability, completeness, usefulness, non-infringement of intellectual property rights, or quality of any content on the Altova Mailing List Archive(s), regardless of who originates that content. You expressly understand and agree that you bear all risks associated with using or relying on that content. Altova will not be liable or responsible in any way for any content posted including, but not limited to, any errors or omissions in content, or for any losses or damage of any kind incurred as a result of the use of or reliance on any content. This disclaimer and limitation on liability is in addition to the disclaimers and limitations contained in the Website Terms of Use and elsewhere on the site.

.
.

transparent

transparent