[xsl] pass a JavaScript variable to a XSL variable

Subject: [xsl] pass a JavaScript variable to a XSL variable
From: lhudspeth@xxxxxxxxxxxxxx
Date: Sat, 08 Nov 2003 07:34:56 -0500
I am trying to use JavaScript to query  XSL.
I would like to pass a JavaScript variable to a XSL variable.
So far I have not found a solution.
The page displays but does not execute the JavaScript.
I have tried the following.
Is there a way to do this?
-----------------------------------

<xsl:variable name="lastnamez">
<script>
 			var strID = location.search.substring(1)
		//	 strID = 'Bloggs'
 			document.write(strID);
			alert("jello")

</SCRIPT>
</xsl:variable> 

------------------------
<xsl:variable name="lastnamez">Bloggs
<SCRIPT language="javascript">
<xsl:comment>
<![CDATA[
 			var strID = location.search.substring(1)
		//	 strID = 'Bloggs'
 			document.write(strID);
			alert("jello")
]]>
</xsl:comment>
</SCRIPT>
</xsl:variable> 
-------------------------------
<xsl:variable name="lastnamez">	
<SCRIPT language="javascript">
<![CDATA[


 			var strID = location.search.substring(1)
		//	strID = 'Bloggs'
 			document.write(strID);
]]>
</SCRIPT>
</xsl:variable> 

-------------------------


lhudspeth@xxxxxxxxxxxxxx

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


Current Thread