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

Re: language

Subject: Re: language
From: Miloslav Nic <nicmila@xxxxxxxx>
Date: Fri, 16 Jul 1999 11:58:32 +0200
Re: language
I would use xsl:if constructs.

I am solving language problems in following way:
I do not use attributes for anything what needs translation, but I
e.g. <!ELEMENT text (#PCDATA|trans)*>
Then I can either write 
or <text>blablaaaa<trans lang="cs">asasssa</trans><trans

Then you can use in your XSL constructs like:
  <xsl:when test='trans[@lang=$language]'>
  <xsl:value-of select="trans[@lang=$language]"/>
  <xsl:when test='trans[not(@lang)] and /*/@translang=$language'>
  <xsl:value-of select="trans[not(@lang)]"/>
  <xsl:value-of select="./text()"/>

Look at http://zvon.vscht.cz/ZvonHTML/Zvon/zvonHomepage_en.html for
(click at XSL and then on generalTemplates_1_00.xsl)

Marco.Mistroni@xxxxxxxxx wrote:
> HI all,
>         I have one problem: I am using xsl to convert xml into html
> I get the name of every attribute using attribute value templates
> I would like to display the name of the attribute in a language other than
> english....for example french
> Anyone knows if it is possible using xsl??
> Thanx
> Br
> marco
>  XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list

Dr. Miloslav Nic                        e-mail: nicmila@xxxxxxxx
Department of Organic Chemistry         TEL: +420 2 2435 5012  
ICT Prague (VSCHT Praha)                     +420 2 2435 4118
    				        FAX: +420 2 2435 4288  

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

Current Thread


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.
First Name
Last Name
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.