Subject:XSLT processor cant execute java functions Author:Steve Capell Date:21 Mar 2003 02:17 AM
Hello all,
I am trying to execute an XSLT to convert xCBL to SAP IDOCs. The XSLT itself is a complex composite with several nested includes plus custom java code. The XSLT seems to execute OK until it gets to the custom functions and then I get:
Functions.xsl (145, 2): Exception calling Java extension: ; java.lang.ClassNotFoundException: http://xml.apache.org/xslt/java; at com.exln.stylus.CXClassLoader.findClass(CXClassLoader.java:192); at java.lang.ClassLoader.loadClass(ClassLoader.java:306); at com.exln.stylus.CXClassLoader.loadClass(CXClassLoader.java:234); at java.lang.ClassLoader.loadClass(ClassLoader.java:262);
The XSLT is in the attached zip file. The java functions are in the code/classes subdirectory, the root xslt is xslt\stylesheets\xcbl2sap\r3\order.xsl. I also attach a source file. if all works OK you should get a SAP IDOC as the output.
Subject:Re: XSLT processor cant execute java functions Author:Minollo I. Date:21 Mar 2003 09:16 AM
I guess you forgot to attach the file.
Anyway, from the error message you posted, the problem seems to be that you
are trying to make the internal processor handle a syntax for Java
extensions which it doesn't support. To have more details about the kind of
Java extensions supported by the internal processor you should take a look
at the documentation (Using Stylus Studio >> Working with XSLT >>
Specifying Extension Functions).
As mentioned in other posts, XSLT Java extensions are not yet part of any
stable version of XSLT specifications; almost all processors support part
of the proposal that was in the aborted XSLT 1.1 spec, but most likely
things won't become entirely clear until XSLT 2.0 is in recommended state.
If you need support for specific Java extension formats not recognized by
the internal processor, you should switch to the XalanJ or Saxon processors
which will still let you do step-by-step debugging and backmapping (see the
Processor tab in the Scenario Properties dialog).