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

Re: Simple (external XML) internationalization with XS

Subject: Re: Simple (external XML) internationalization with XSLT?
From: Geert Josten <Geert.Josten@xxxxxxxxxxx>
Date: Mon, 03 Oct 2005 18:00:33 +0200
for xml i18n
Interesting but, cannot this be done without so much writting in each
i18n call? Can't it be simplified? Isn't there other method?

Cannot I write something like this?:

<i18n:text key="1" />

And transform it automatically to:

<xsl:value-of select="document('en-US.xml')//i18n:language/i18n:hash-list/i18n:string[@key='1']"
/>

You can put use a variable:


<xsl:variable name="i18n-strings" select="document('en-US.xml')//i18n:language/i18n:hash-list/i18n:string" />

<xsl:value-of select="$i18n-strings[@key = '1']" />

Cheers,
Geert

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.