Recently i am working on XSLT.
i got an xsl_variable which can be retrieved by <xsl:value-of select=”./xsl_variable” /> in the .xsl. i would like to pass this variable to a Javascript function called popup() inside the <a href>.
Here is my code in the .xsl
<a><xsl:attribute name="href">javascript: popup("<xsl:value-of select="./xsl_variable" />")</xsl:attribute>
<xsl:value-of select="./xsl_variable" />
</a>
Done =)
Reference: How to <a href = “XSLT var”> ?

Coool…. It solved my problem. Thank you
LikeLike
you are welcome =)
LikeLike
Great Post !!
LikeLike
You are welcome. =D
LikeLike