RE: [xsl] Replacing all Occurences of a String

Subject: RE: [xsl] Replacing all Occurences of a String
From: "Tim Watts" <timw@xxxxxxx>
Date: Fri, 31 Aug 2001 10:21:28 +1000
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: [xsl] 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