Setting An Xslt Variable As A Javascript Variable?
How would I grab an XSLT variable and use it to set a JavaScript variable? I'm working on a bit of AJAX and in order to make it work to the fullest I would like to be able to grab
Solution 1:
Stick something like the following in your XSLT part that outputs the JavaScript.
<xsl:variable name="myvar" select="'red'" />
<xsl:text>var myobj="</xsl:text><xsl:value-of select="$myvar"></xsl:value-of><xsl:text>"</xsl:text>
Post a Comment for "Setting An Xslt Variable As A Javascript Variable?"