Altova Mailing List Archives>Archive Index >xsl-list Archive Home >Recent entries >Thread Prev - [xsl] Simple (external XML) internationalization with XSLT? [Thread Next] Re: [xsl] Simple (external XML) internationalization with XSLT?To: Date: 10/3/2005 4:01:00 PM 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 | ||||||
| Company | Legal | Press | Partners | Careers | Sitemap | Contact Us | Altova Blog | Mobile | Full Site | |||
|
