Subject: Re: [xsl] Displaying Multilingual Messages From: "James Fuller" <james.fuller@xxxxxxxxxx> Date: Wed, 4 Jul 2001 17:19:26 +0100 |
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: [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
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
[xsl] Displaying Multilingual Messa, Prince Ohilip | Thread | [xsl] Displaying Multilingual Messa, Prince Ohilip |
Re: [xsl] XSLT/SVG variables questi, James Fuller | Date | Re: [xsl] The Future of Browser-Bou, James Fuller |
Month |