![]() |
![]() | ![]() | ![]() | 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/5/2005 1:15:00 AM Robert Koberg escribis:
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
Yes, the internationalization transformation should be made at runtime.
I am looking at the specs you sent me and seem very very interesting,
just the thing I was looking for. Unfortunately, I can't use a Java
implementation so I think I am going to do it myself. However, I won't
need anything more than some XSLT routines.
Thanks very much.
Andrew
-- | ![]() | ![]() | ![]() |
| Company | Legal | Press | Partners | Careers | Sitemap | Contact Us | Altova Blog | |||||
|
