This is the mail archive of the
xsl-list@mulberrytech.com
mailing list .
multilanguage XSL file
- To: xsl-list at lists dot mulberrytech dot com
- Subject: [xsl] multilanguage XSL file
- From: BEKE Frantisek <beke at asset dot sk>
- Date: Tue, 22 May 2001 09:37:00 +0200
- Reply-To: xsl-list at lists dot mulberrytech dot com
Hello!
I need to do multilanguage webpages using cocoon 1.8.2.
Is there any simple or commonly used way to achieve this?
I think about two options:
(1.) i have for every language a xslt stylesheet with templates for every
string (containig just a string) in the xsl and i will conditionally include
one of them into the "main" xsl and just call a template for every string.
or
(2.) i have for every language a template (in a separate xsl file)
with a parameter, that is some id of the string and in this template
i return a string depending of this parameter (using <choose>...).
>From the main xsl i will just call this template with a parameter
of the string id, i need.
What's the faster method? Or is there any other common way to do this?
Thank you!
Regards,
F. Beke
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list