XML Editor
Sign up for a WebBoard account Sign Up Keyword Search Search More Options... Options
Chat Rooms Chat Help Help News News Log in to WebBoard Log in Not Logged in
Show tree view Topic
Topic Page 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 Go to previous topicPrev TopicGo to next topicNext Topic
Postnext
Steve CapellSubject: 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.

Postnext
Minollo I.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).

Hope this helps,
Minollo

Posttop
Steve CapellSubject: Re: XSLT processor cant execute java functions
Author: Steve Capell
Date: 22 Mar 2003 05:03 PM
Carlo,

Thanks for your response. I did not forget the files but the website would not upload them (timed out). Perhaps they were to large? (750kb).

In any case, I took your advice and switched to XALAN processor and all works fine.

Thanks,

Steve Capell

 
Topic Page 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 Go to previous topicPrev TopicGo to next topicNext Topic
Download A Free Trial of Stylus Studio 6 XML Professional Edition Today! Powered by Stylus Studio, the world's leading XML IDE for XML, XSLT, XQuery, XML Schema, DTD, XPath, WSDL, XHTML, SQL/XML, and XML Mapping!  
go

Log In Options

Site Map | Privacy Policy | Terms of Use | Trademarks
Stylus Scoop XML Newsletter:
W3C Member
Stylus Studio® and DataDirect XQuery ™are from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2016 All Rights Reserved.