View Single Post
 
Old February 13th, 2007, 05:09 AM
SOMANATHAN10 SOMANATHAN10 is offline
Authorized User
 
Join Date: Feb 2007
Location: CHENNAI, TAMILNADU, India.
Posts: 11
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via Yahoo to SOMANATHAN10
Default CALLING A TEMPLATE WITHIN JAVA SCRIPT

I'm trying to call an xsl:template within a java script.
But the template "simp" is not called.
Please Follow the code snippet I am trying to implement.
If anybody have ideas on how to work xsl with javascript,please share.

<script language="javascript">
          var a=0;
          function s()
          {
    alert("hai");
    <xsl:call-template name="simp">
    <xsl:with-param name="a" select="2"/>
    </xsl:call-template>
              }
      </script>

    <xsl:template name="simp">
    <xsl:param name="a"/>
    <xsl:value-of select="$a"/>
    </xsl:template>

C.SOMA
__________________
C.SOMA