This is the mail archive of the
xsl-list@mulberrytech.com
mailing list .
Re: Displaying Multilingual Messages
- From: "James Fuller" <james dot fuller at o-idev dot com>
- To: <xsl-list at lists dot mulberrytech dot com>
- Date: Wed, 4 Jul 2001 17:19:26 +0100
- Subject: Re: [xsl] Displaying Multilingual Messages
- Organization: o-iDeveloper ltd.
- References: <20020704142223.23699.qmail@webmail25.rediffmail.com>
- Reply-to: xsl-list at lists dot mulberrytech dot com
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@rediffmail.com>
To: <xsl-list@lists.mulberrytech.com>
Sent: Thursday, July 04, 2002 3:22 PM
Subject: [xsl] 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