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

Re: Displaying Multilingual Messages

Subject: Re: Displaying Multilingual Messages
From: "James Fuller" <james.fuller@xxxxxxxxxx>
Date: Wed, 4 Jul 2001 17:19:26 +0100
multilingual javascript alert
something like this, to autogenerate your javascript

<xsl:param name="selectedlanguage" />
<script language="javascript">
function alertmessage(){
var message="<xsl:value-of select="text[@xml:lang=$selectedlanguage]"/>";
alert(message);
}
</script>

so the simple technique above illustrates how u can autogenerate javascript
then select the js var message to have the right text based on what language
...

I have used a param with which u must supply to tell what is the current
lang. there are other methods to perform what u want also

good luck, jim fuller

----- Original Message -----
From: "Prince Ohilip" <rajavintemakan@xxxxxxxxxxxxxx>
To: <xsl-list@xxxxxxxxxxxxxxxxxxxxxx>
Sent: Thursday, July 04, 2002 3:22 PM
Subject:  Displaying Multilingual Messages


> Hi,
>     I am currently Using XSL to generate my HTML Pages.I am
> calling the Transformer from JSP and generating the HTML.
>
> The Issue is that i need to display Multilingual alert messages
>  from Javascript.My Javascript is in a .JS File.
>
> I am planning to create a Static XML FIle to store all the
> Multilingual Messages.
>
> But How can i access these values from Javascript is my Issue..
>
> Any advices from you on this or any other method will be of great
> Help to Me
>
> With Thanks,
> Philip
> _________________________________________________________
> There is always a better job for you at Monsterindia.com.
> Go now http://monsterindia.rediff.com/jobs
>
>
>  XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list


 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.