xsl-list
[Top] [All Lists]

Re: Assigning a Javascript variable value to a XSLT variable

2003-10-08 00:36:15
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(_dot_)Ashish(_at_)Principal(_dot_)com



-----Original Message-----
From: owner-xsl-list(_at_)lists(_dot_)mulberrytech(_dot_)com
[mailto:owner-xsl-list(_at_)lists(_dot_)mulberrytech(_dot_)com]On Behalf Of 
Tengshe,
Ashish
Sent: Tuesday, October 07, 2003 4:21 PM
To: xsl-list(_at_)lists(_dot_)mulberrytech(_dot_)com
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



<Prev in Thread] Current Thread [Next in Thread>