locked
Run tiem Error xslt Processor RRS feed

  • Question

  • hi,

    I am using msxsl:script but i got the error on namespace

    The xsl file is

    <?xml version='1.0'?>
    <xsl:stylesheet version="1.0"
          xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
          xmlns:msxsl="urn:schemas-microsoft-com:xslt"
          xmlns:user="http://mycompany.com/mynamespace">

    <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>

    and the xml file is

    <?xml version="1.0"?>
    <?xml-stylesheet type="text/xsl" href="script.xsl" ?>
    <customers>
       <customer>
          <name>John Smith</name>
          <address>123 Elm St.</address>
          <phone>(123) 456-7890</phone>
       </customer>
       <customer>
          <name>Mary Jones</name>
          <address>456 Oak Ave.</address>
          <phone>(156) 789-0123</phone>
       </customer>
    </customers>

    The error message is

    The URI http://mycompany.com/mynamespace does not identify an external Java claass
    Transformation failed: Run-time errors were reported

    can any one help this problem.......

    Wednesday, June 30, 2010 11:57 AM