[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

Re: Simple (external XML) internationalization with XS

Subject: Re: Simple (external XML) internationalization with XSLT?
From: knocte <knocte@xxxxxxxxx>
Date: Tue, 04 Oct 2005 22:58:23 +0200
i18n transformers in cocoon
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

--

Current Thread

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.