xsl-list
[Top] [All Lists]

RE: Setting up style sheets in multiple languages

2003-03-04 03:42:37
|I am wanting to set up some style sheets to produce output 
|text and HTML in multiple languages, eg French, Chinese etc. 
|Has anyone done this?  

We've done something along those lines here.  What we did was to have a
set of external xml files holding the translation items (i.e. the
displayed text) so that the stylesheet producing the output knew
absolutely nothing about the language involved.  Instead, it pulled in
the appropriate text using keys.

The main question, though, is how you're planning to do this.  The
system we built is dynamic - you select the language on the initial
screen, and this is passed as a parameter to the rest of the screens.
In our case, we combine the selected language's translation file and the
xml file to be translated on-the-fly, and that way we can select the
translation from the xsl directly.  We also have similar systems that
use nodes to control the translation and display of xml messages on the
fly based around our architecture.  If this is what you're looking to
do, drop me an email off-list and I'll tell you more about what we've
got here (or you can find more info on our website - I'm just trying to
avoid a shameless plug ;)).

If you're generating a set of static pages, on the other hand, it's
probably not worth going down this route.  You'd probably be better off
passing the language as a parameter into the stylesheet, and using this
parameter as a variable to store the root element of your language
translation file (for example, using document({$param}.xml) or similar).
If you're generating multiple sets of pages for different languages, you
could also pass a series of languages in at the dos prompt and use a
batch file to process each of them successively.  If that's what you're
looking to do, email me off-list and I'll give you some more pointers to
this (I've got a few bits that do this sort of thing that should help
you get started).

Hope that's of some help,

Regards
Allan Jones

Tel:    0121 506 9111
Fax:    0121 506 9112
Web:    http://www.hyfinity.com
------------------------------------------------------------------------
----------------
HYFINITY LIMITED. Registered in England & Wales 4136884. Registered
Office:
Blythe Valley Innovation Centre, Central Boulevard, Blythe Valley Park,
Solihull, West Midlands, B90 8AJ. Tel: +44 (0)121 506 9111.

The information contained within this email, together with any
attachments,
is intended solely for the named recipient(s) and may contain privileged
and/or confidential information. If you receive this in error, please
notify
hyfinity limited immediately and delete this e-mail.

Any views or opinions represented in this e-mail are solely those of the
author and do not necessarily represent those of hyfinity or its
affiliate
companies.

Although this e-mail and its attachments have been scanned for the
presence
of computer viruses, hyfinity will not be liable for any losses as a
result
of any viruses being passed on. 


 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list



<Prev in Thread] Current Thread [Next in Thread>