xsl-list
[Top] [All Lists]

problems in formatting date time

2005-04-20 07:44:34
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

--~------------------------------------------------------------------
XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: <mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--



<Prev in Thread] Current Thread [Next in Thread>