View Single Post
  #1 (permalink)  
Old October 10th, 2006, 02:26 AM
ksskumar ksskumar is offline
Authorized User
 
Join Date: Oct 2006
Location: , , .
Posts: 17
Thanks: 0
Thanked 0 Times in 0 Posts
Default Exception when transforming using XSLT

When I am trying to transform an XML using the following XSLT ...

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

... I am getting the below exception,
"The URI javascript does not identify an external Java class"

This is happening whenever I invoke a function written in an <msxsl:script> block.

Please help.

The full exception is:

************************************************** *
javax.xml.transform.TransformerException: javax.xml.transform.TransformerException: The URI http://mycompany.com/mynamespace does not identify an external Java class
        at com.icl.saxon.IdentityTransformer.transform(Identi tyTransformer.java:92)
        at com.logistics.javalib.xml.XSLFilterChainTransforme r.transform(XSLFilterChainTransformer.java:185)
        at com.logistics.messaging.router.translators.XMLToXM LTranslator.translateOutbound(XMLToXMLTranslator.j ava:253)
        at RouterOperations.TranslateAndSend(RouterOperations .java:2581)
        at sun.reflect.GeneratedMethodAccessor21.invoke(Unkno wn Source)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(De legatingMethodAccessorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:324)
        at com.wm.app.b2b.server.JavaService.baseInvoke(JavaS ervice.java:287)
        at com.wm.app.b2b.server.invoke.InvokeManager.process (InvokeManager.java:587)
        at com.wm.app.b2b.server.invoke.StatisticsProcessor.p rocess(StatisticsProcessor.java:44)
        at com.wm.app.b2b.server.invoke.ServiceCompletionImpl .process(ServiceCompletionImpl.java:229)
...
************************************************** ***********

Reply With Quote