[xsl] i18n and l10n question
by Nicolas Van Cleemput other posts by this author
Nov 6 2006 1:52AM messages near this date
[xsl] RE: Help needed to transform in data joining
|
Re: [xsl] i18n and l10n question
& XSLT hi,
in our application we currently use XML-files that are structured as follows:
<factory>
<i18n>
<properties>
<entry key="id1"> text</entry>
...
</properties>
<node name="nl">
<properties>
<entry key="id1"> text in other language</entry>
...
</properties>
</node>
<node name="fr">
<properties>
<entry key="id1"> another translation</entry>
...
</properties>
</node>
(and so on for all the available locales)
</i18n>
<other_tags> </other_tags>
...
</factory>
We are now planning to use XSL to create help pages from these XML-files. We
want this to be done with the correct rules for i18n, i.e. if the text for id1
isn't available in the demanded locale, it defaults to a lesser specific locale
untill it reaches the default locale (the one that isn't inside a
<node> </node>).
Any idea how this can be done with XSL (and maybe some JAVA-programming)?
Thanks in advance,
Nico Van Cleemput
University Ghent
http://www.UGent.be
--~------------------------------------------------------------------
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@[...].com>
--~--
Thread:
Nicolas Van Cleemput
Nicolas Van Cleemput
Nicolas Van Cleemput
Nicolas Van Cleemput
Nicolas Van Cleemput
Nicolas Van Cleemput
Nicolas Van Cleemput
Nicolas Van Cleemput
|