|
[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] 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@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
|
PURCHASE STYLUS STUDIO ONLINE TODAY!Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|

Cart








