[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]

Subject: Change Months from English to French [XSLT 1.0]
From: pankaj.c@xxxxxxxxxxxxxxxxxx
Date: Sat, 31 Jul 2010 19:42:30 +0530
 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

Current Thread

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.