[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] 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
|
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
|