[XSL-LIST Mailing List Archive Home] [By Thread] [By Date]

Re: [xsl] Assigning a Javascript variable value to a XSLT variable


Subject: Re: [xsl] Assigning a Javascript variable value to a XSLT variable
From: "Emmanuil Batsis (Manos)" <mbatsis@xxxxxxxxxxx>
Date: Wed, 08 Oct 2003 10:36:15 +0300

You will have to describe what you are trying to do further.

If you are trying to pass a variable from JavaScript to XSLT *before* the transformation, a global xsl:param may be what you want. Both IE and Mozilla support this from script. A cross-browser way of doing this on the client is Sarissa, described at

http://sarissa.sourceforge.net/


hth,


Manos

Tengshe, Ashish wrote:
I'm trying this

<xsl:variable name="val">
  <script>
     document.write(scriptvar);
</script>
</xsl:variable>

but this assigns the value "document.write(scriptvar);" to the variable val.
I want to assign the RESULT of that expression!
Thanks,

Ashish Tengshe
IT System Analyst
Tengshe.Ashish@xxxxxxxxxxxxx



-----Original Message-----
From: owner-xsl-list@xxxxxxxxxxxxxxxxxxxxxx
[mailto:owner-xsl-list@xxxxxxxxxxxxxxxxxxxxxx]On Behalf Of Tengshe,
Ashish
Sent: Tuesday, October 07, 2003 4:21 PM
To: xsl-list@xxxxxxxxxxxxxxxxxxxxxx
Subject: [xsl] Assigning a Javascript variable value to a XSLT variable


Hi All, Can you tell me how I can assign the value of a Java script variable to a xsl variable. If you could send me some examples, that would be great. Thanks,

Ashish Tengshe
IT System Analyst

(Sorry for the multiple posts but I hit the send button before adding subject)




XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list



XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list



XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list




-- Manos Batsis

    _  __    __                    __
   / |/ /__ / /____ __ _ ___ _____/ /_
  /    / -_) __(_-</  ' Y _ `/ __/ __/
 /_/|_/\__/\__/___/_/_/_|_,_/_/  \__/

http://www.netsmart.gr
mbatsis at netsmart dot gr
(+30) 210 33 02 608
(+30) 210 33 02 658
http://forte.netsmart.gr/foaf/manos_foaf.rdf




XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list




Current Thread
Keywords