Author:Brendon Upson
Email:bupson at wnc.net.au
Subject:Example
Category:Development
Message:

Yes, it is possible but a little confusing. God love XSL.....

       <a><xsl:attribute name="href"><xsl:text>JavaScript:editCostCode('</xsl:text>
            <xsl:value-of select="item[@name='costcodeid']/value"/><xsl:text>');</xsl:text></xsl:attribute>
            <xsl:value-of select="item[@name='costcodedisplay']/value"/>&#160;
        </a>

 

The above will produce the equivalent of: <a href="JavaScript:editCostCode('24');">CostCode Name&nbsp;</a> 


Threads:
Accessing Javascript from XSL Stylesheet   Bruce Williams 15.Jun.06
    Example   Brendon Upson 15.Jun.06