I need help with inserting JavaScript in XSLT. Here is an example of what I am trying to do:
<xsl:variable name="comboname" select="@name" />
<script type="text/javascript">
var z{$comboname} = {$comboname};
</script>
However, when I run the transformation, it displays this:
<script type="text/javascript">
var z{$comboname} = {$comboname};
</script>
I have verified that $comboname holds the correct value. How can I pass this value into my JavaScript code?
Your assistance is greatly appreciated!