On Saturday 28 September 2002 09:27, Ken wrote:
> how about this solution?
> http://www-106.ibm.com/developerworks/web/library/wa-xslt/?dwzone=web
>
> i guess we need something like NLS layer tied to stylesheet.

Not having looked at the link (site is slow, didn't load yet for me), I only 
have one thing to remark:
The XML standard itself defines an attribute xml:lang (namespace is the XML 
namespace) containing a ISO two-letter language code possibly extended by a 
modifier (e.g., "en", "de", "pt_BR"). Though libxml or libxslt don't do 
anything with them, it is easy for you to filter any tag not having the 
correct language specification. Also, XSLT supplies a 'lang()' function which 
makes language matching painless even when facing extended language codes 
like "pt_BR" (brazilian portugese).
The real complex part of the original posting is the question how to supply 
the localized data in the first place, facing translators who should have all 
texts easily accessible. There was a posting about several alternatives some 
months ago on this mailing list, search the archives for it.

CU
J�rg

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to