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[(_at_)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[(_at_)key = '1']" />
Cheers,
Geert
--~------------------------------------------------------------------
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: <mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--