[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

RE: Replacing all Occurences of a String

Subject: RE: Replacing all Occurences of a String
From: "Tim Watts" <timw@xxxxxxx>
Date: Fri, 31 Aug 2001 10:21:28 +1000
RE:  Replacing all Occurences of a String
And also see localization recipe found at
http://aspn.activestate.com/ASPN/Cookbook/XSLT/Recipe/65427

Tim

> -----Original Message-----
> From: owner-xsl-list@xxxxxxxxxxxxxxxxxxxxxx
> [mailto:owner-xsl-list@xxxxxxxxxxxxxxxxxxxxxx]On Behalf Of Tim Watts
> Sent: Friday, 31 August 2001 10:13 AM
> To: xsl-list@xxxxxxxxxxxxxxxxxxxxxx
> Subject: RE:  Replacing all Occurences of a String
>
>
> To add to Chris Bayes suggestion, here is another
> localization solution
>
> ...
>
> XSL
> <?xml version='1.0'?>
> <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
> version="1.0">
> <xsl:variable name="language" select="document(german.xml'))/words" />
>
> <xsl:template match="/">
>     <translated-phrases>
>     German Months
>         <translation>
>             <xsl:value-of select="$language/jan" />
>         </translation>
>         <translation>
>             <xsl:value-of select="$language/feb" />
>         </translation>
>     </translated-phrases>
> </xsl:template>
> </xsl:stylesheet>
>
> Cheers,
>
> Tim Watts
>
> > -----Original Message-----
> > From: Chris Bayes
> >
> > Have a look at
> > http://www.biglist.com/lists/xsl-list/archives/200008/msg01300.html
> > for some ideas on internationalization.
> > You can extend this idea to handle
> > your month conversions if your datafile looked like
> > <dictionary>
> >   <months lang="en">
> >     <month abbr="jan">january</month>
> >     ...
> >     <month abbr="dec">december</month>
> >   </months>
> >   <months lang="fr">
> >     <month abbr="jan">janvier</month>
> >     ...
> > Ciao Chris


 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list


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.