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

Re: Translating grammars XML in others languages

Subject: Re: Translating grammars XML in others languages
From: "Marrow" <marrow@xxxxxxxxxxxxxx>
Date: Wed, 3 Jul 2002 14:12:29 +0100
grammars xml
Hi Paulo,

Any stylesheet that builds output elements/attributes using DOE
(disable-output-escaping) is going to be fairly troublesome - and bear in mind
that the disable-output-escaping attribute is optional for transformation
engines to support.

You might be as well to look at using the existing mechanisms within XML and
XSLT/XPath for handling languages - e.g. the xml:lang attribute (in XML) and the
lang() function (in XPath).  You could utilise the xml:lang attribute in your
dictionary xml and then use this to query the dictionary for the appropriate
language requirement in your XSLT (using the lang() function).

As an example of this, I have produced a couple of stylesheets (based on your
requirement) that might be of some use.  As you can imagine the stylesheets get
fairly long - so to avoid cluttering everyones in-basket I have uploaded these
to...
  http://www.marrowsoft.com/Downloads/Temp/LangTran.zip
The zip file contains a modified version of your dictionary.xml plus two
stylesheets - one that translates from your original language to any language
supported in the dictionary; and another (2-way) stylesheet that translates
between any input language to any output language (supported in the dictionary).
Both stylesheets are commented in code - but if you have any questions just ask.

You can also find another utilisation of this technique at:-
  http://www.topxml.com/code/default.asp?p=3&id=v20020520103810
... although a bit out of date now! :)

Hope this helps
Marrow
http://www.topxml.com/Xselerator



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


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.