Wrox Home  
Search P2P Archive for: Go

  Return to Index  

aspx thread: JScript function not working XSLT


Message #1 by "Pratik Maroo" <psmaroo@y...> on Thu, 9 May 2002 15:08:41
I am trying to use JScript in XSLT file to return the node.
Following example is given in XML4.0 help, but it is not working when 
loading XSLT through webform.

Am I doing missing something ?

Thx.

<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
                xmlns:msxsl="urn:schemas-microsoft-com:xslt"
                xmlns:user="http://mycompany.com/mynamespace"
                version="1.0">
  <msxsl:script language="JScript" implements-prefix="user">
    function xml(nodelist) {
      return nodelist.nextNode().xml;
    }
  </msxsl:script>

  <xsl:template match="/">
    <xsl:value-of select="user:xml(.)"/>
  </xsl:template>
</xsl:stylesheet>

  Return to Index