Click here to Skip to main content
15,890,415 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I m transforming a XML into a XSL File, while there is a need to call a Javascript Function.
Javascript function is as follows:
function Toggle(ID)
{
-------
}
and I m calling this as follows:
XML
<xsl:attribute name="onclick">
          <xsl:text>Toggle(</xsl:text>
          <xsl:value-of select="$i"/>

          <xsl:text>)</xsl:text>
        </xsl:attribute>
what if I have to pass two parameters instead??
viz. how can I call
function Toggle(ID1, ID2)
{
-----
}???
Currently i m doing this

<xsl:attribute name="onclick" xmlns:xsl="#unknown">
          <xsl:text>Toggle(</xsl:text>
          <xsl:value-of select="$i" />
         
          <xsl:text>,ID)</xsl:text>
        </xsl:attribute>
Is this right???
Posted
Updated 22-Feb-14 20:06pm
v6

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900