[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] Re: xslt and i18n
At 2009-02-16 17:06 +0000, Andrew Welch wrote:
Regarding localisation support in xslt, I've always thought we could take advantage of dynamic despatch, import precedence or template priorities etc The second and third match above will cause a template conflict because they both have an implicit priority=".5". Your most specific match, the third one, should have a higher explicit priority. </xsl:stylesheet> I suppose ... the localization information is in a data file indicated by an invocation parameter. You are relying on XSLT 2 or an extension. I'm supporting fourteen languages for the United Nations Layout Key for Invoice, using 14 differently-named top-level stylesheets: http://www.CraneSoftwrights.com/resources/ublss/#ubl2-ss Bosnian, Czech, Danish, Dutch, English, Finnish, French, German, Icelandic, Italian, Norwegian, Portuguese, Slovak and Spanish Of course everything is modular and I use the stylesheet importation to override the English base strings with whatever strings are available in the given language. Volunteers have submitted the language translations just by editing a small prototypical stylesheet fragment with only global variable declarations ... most of them don't know XSLT. Any ideas on how to improve this? What benefit are you looking for by which improvement could be measured? . . . . . . . . . . . . Ken -- Upcoming hands-on XQuery, XSLT, UBL & code list training classes: Brussels, BE 2009-03; Prague, CZ 2009-03, http://www.xmlprague.cz Training tools: Comprehensive interactive XSLT/XPath 1.0/2.0 video Video lesson: http://www.youtube.com/watch?v=PrNjJCh7Ppg&fmt=18 Video overview: http://www.youtube.com/watch?v=VTiodiij6gE&fmt=18 G. Ken Holman mailto:gkholman@xxxxxxxxxxxxxxxxxxxx Crane Softwrights Ltd. http://www.CraneSoftwrights.com/s/ Male Cancer Awareness Nov'07 http://www.CraneSoftwrights.com/s/bc Legal business disclaimers: http://www.CraneSoftwrights.com/legal
|
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
|