[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

problems in formatting date time

Subject: problems in formatting date time
From: Shantanu Gera <shantanu.gera@xxxxxxxxx>
Date: Wed, 20 Apr 2005 20:14:34 +0530
xsl format date time
Hi All ,
I am trying to use format-dateTime function in the following way

<!--<xsl:variable name="orderDateCasted" select="$orderDate cast as
xs:dateTime"/> -->
<!-- format-dateTime($orderDate,[FNn] [D] [MNn] [Y] [h]:[m01]
[PN],"en",(),()) -->
<!--<TR> <TD> <font class="bodyText">Order submitted on: <xsl:value-of
select="format-dateTime($orderDate,[FNn] [D] [MNn] [Y] [h]:[m01]
[PN],"en",(),())"/> </font></TD> </TR>

but this is not allowed and I am getting error (Xalan is the xslt
processor ,latest version asof today )

SystemId Unknown; Line #147; Column #84; XSLT Error
(javax.xml.transform.TransformerConfigurationException):
javax.xml.transform.TransformerException:
javax.xml.transform.TransformerException: Extra illegal tokens:
'cast', 'as', 'http://www.w3.org/2001/XMLSchema', ':', 'dateTime'

Can someone tell me what is the error or other wise how can I format a date ,
My date is in format "2004-06-29T15:36:32+05:30"
and I have to change it to "Monday 28 Mar 2005"

Thanks in advance
--
Regards,
Shantanu

Current Thread

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.