|
Subject: Re: [xsl] Change Months from English to French [XSLT 1.0] From: Martin Honnen <Martin.Honnen@xxxxxx> Date: Sat, 31 Jul 2010 16:24:17 +0200 |
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)
<map> <!-- put complete mapping here --> <month en="August" fr="Aout"/> </map>
<xsl:template match="date-printed">
<xsl:copy>
<xsl:variable name="em" select="substring-before(., ' ')"/>
<xsl:for-each select="$month-map">
<xsl:value-of select="key('mk', $em)/@fr"/>
</xsl:for-each>
<xsl:value-of select="concat(' ', substring-after(., ' '))"/>
</xsl:copy>
</xsl:emplate>Martin Honnen http://msmvps.com/blogs/martin_honnen/
| Current Thread |
|---|
|
| <- Previous | Index | Next -> |
|---|---|---|
| [xsl] Change Months from English to, pankaj . c | Thread | Re: [xsl] Change Months from Englis, Syd Bauman |
| [xsl] Change Months from English to, pankaj . c | Date | Re: [xsl] Change Months from Englis, Syd Bauman |
| Month |