[XSL-LIST Mailing List Archive Home] [By Thread] [By Date]

RE: [xsl] Date YYYYMMDD format XSLT 2.0


Subject: RE: [xsl] Date YYYYMMDD format XSLT 2.0
From: "Pankaj Chaturvedi" <pankaj.chaturvedi@xxxxxxxxx>
Date: Tue, 16 Sep 2008 16:30:21 +0530

> <chapter version="Feb. 2000"/>

> The date could be optional can be taken as 01 by default. So the 
> desired output required in "YYYYMMDD format".


Thanks drkm. This seems to be working but I am getting error (error in
regular expression) in below

       <xsl:analyze-string select="'02 Feb. 2001'" regex="{ $re }">

Precisely at regex="{ $re }" though its seems to be ok what you have defined
in below.

  <xsl:variable name="re" select="'^(([0-9]{{1,2}}) )?([A-Z][a-z][a-z]).
([0-9]{{4}})$'"/>


Any ideas.

Thanks

Pankaj


Confidentiality Notice:" This message and any attachment(s)
contained here are information that is confidential, proprietary to
IDS Infotech Ltd. and its customers.
Contents may be privileged or otherwise protected by law. The
information is solely intended for the individual or the entity it
is addressed to. If you are not the intended recipient of this
message, you are not authorized to read, forward, print, retain,
copy or disseminate this message or any part of it. If you have
received this e-mail in error, please notify the sender immediately
by return e-mail and delete it from your computer."


Current Thread