Home. 
.

transparent

transparent

transparent

Altova Mailing List Archives


[xsl] xslt and i18n

From: Andrew Welch <andrew.j.welch@--------->
To:
Date: 2/5/2009 9:55:00 AM
Hi all,

Has anyone any thoughts on internationalisation of xslt:

- are there any existing libraries or techniques you can recommend?

- should xslt even be involved in i18n, or should that be left to the
generated language (eg xhtml)?

- if it's done in the language, should it be inbuilt into the
processor? (or in future, the language itself like JavaFX?)

As an example, say you're outputting an xhtml title that you'd like to localise:

<title>The English Title</title>

I would image it would be straightforward to implement my own i18n
solution, something like:

<title>
  <xsl:value-of select="fn:getLocalisedValue('page.title', 'The
English Title', 'de_DE')"/>
</title>

where the arguments are token key, default value and locale.

Any thoughts?

thanks
-- 
Andrew Welch
http://andrewjwelch.com
Kernow: http://kernowforsaxon.sf.net/


transparent
Print
Mail
Like It
Disclaimer
.

These Archives are provided for informational purposes only and have been generated directly from the Altova mailing list archive system and are comprised of the lists set forth on www.altova.com/list/index.html. Therefore, Altova does not warrant or guarantee the accuracy, reliability, completeness, usefulness, non-infringement of intellectual property rights, or quality of any content on the Altova Mailing List Archive(s), regardless of who originates that content. You expressly understand and agree that you bear all risks associated with using or relying on that content. Altova will not be liable or responsible in any way for any content posted including, but not limited to, any errors or omissions in content, or for any losses or damage of any kind incurred as a result of the use of or reliance on any content. This disclaimer and limitation on liability is in addition to the disclaimers and limitations contained in the Website Terms of Use and elsewhere on the site.

.
.

transparent

transparent