Subject: Re: [xsl] Simple (external XML) internationalization with XSLT? From: knocte <knocte@xxxxxxxxx> Date: Tue, 04 Oct 2005 22:58:23 +0200 |
knocte wrote:
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']"
/>
Hi,
Do you want the localized text to be resolved at transform time? In other words, are you transforming out to something like JSP and that should resolve it at runtime?
Or if your transformation happens at runtime you couold look at how cocoon handles this:
http://cocoon.apache.org/2.1/userdocs/transformers/i18n-transformer.html
best, -Rob
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
Re: [xsl] Simple (external XML) int, Robert Koberg | Thread | Re: [xsl] Simple (external XML) int, David Carlisle |
[xsl] comparisons between strings h, TGolshan | Date | RE: [xsl] grouping list items by at, Lynn Alford |
Month |