[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] Change Months from English to French [XSLT 1.0]
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
|
PURCHASE STYLUS STUDIO ONLINE TODAY!Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|