|
Subject: [xsl] Change Months from English to French [XSLT 1.0] From: pankaj.c@xxxxxxxxxxxxxxxxxx Date: Sat, 31 Jul 2010 19:42:30 +0530 |
Hello all,
I have an element, which is looks like something below.
<date-printed>August 2010</date-printed>
I need to change the all English months (For instance August here to
French Aout). I can understand that I could have something like below in
XSLT 2.0. But for this particular case I've to use 1.0 and not getting
clue.
<xsl:variable name="months" as="element()+">
<month name="August" num="Aout"/>
................
.................
And then could have attempted
<xsl:variable name="re" select="
REGULAR EXPRESSION HERE$'"/>
<xsl:analyze-string select="." regex="{ $re }">
<xsl:matching-substring>
I believe <xsl:analyze-string> is not supported in 1.0 and that becoming
issue here. Any ideas How can this be done in 1.0.
Any direction in this regard will be highly appreciated. (NOTE: Input will
be <date-printed>August 2010</date-printed> i.e., Month name [space] Year.
Output required is Aout 2010)
TIA,
Pankaj
| Current Thread |
|---|
|
| <- Previous | Index | Next -> |
|---|---|---|
| Re: [xsl] Correcting a prior error, David Carlisle | Thread | Re: [xsl] Change Months from Englis, Martin Honnen |
| Re: [xsl] Correcting a prior error, Dave Pawson | Date | Re: [xsl] Change Months from Englis, Martin Honnen |
| Month |