This is the mail archive of the xsl-list@mulberrytech.com mailing list .


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Displaying Multilingual Messages


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]