[prog] XSL and i18n

Dan dan at cellectivity.com
Wed Mar 23 20:02:33 EST 2005


> I'm certainly not an expert for i18n with XSL, so I'm probably not
> of much help here.  However, I don't know for sure, unless I have a
> clearer picture of what you're planning to do

I'm talking about writing XSL stylesheets that can use multiple 
languages. Different programming languages have their own ways of 
supporting different natural languages (Java has resource bundles, 
Windows has resource files, etc.), but I don't know of any similar thing 
for XSL.

Put another way, consider this XSL stylesheet:

   <xsl:template match="foo">
     <p>You have a "foo" listed!</p>
   </xsl:template>

Is there an easy way to provide text of several languages inside the <P> 
tags without recoding the stylesheet separately for each language?

-- 
  We, as individuals with high moral character, would prefer not to
  meet a person who still can't sort out his relationship with his
  secretary. In the traditions of Russian society, in such
  situtations, one divorces one's old wife and marries the secretary.
      - extreme Communist Vladimir Zhirinovsky, objecting before the
        Russian Parliament to President Clinton's visit


More information about the Programming mailing list