Transformation using Xalan Extensions

Having trouble installing Oxygen? Got a bug to report? Post it all here.
schierge
Posts: 2
Joined: Tue Sep 09, 2003 6:04 pm
Contact:

Transformation using Xalan Extensions

Post by schierge »

Hi,

we are using some XSLT which includes calls to the Xalan-Extensions on the oxygenclipse-Plugin via Javascript Component.

Therefore i added bsf.jar, js.jar and a custom .jar-file to the lib directory of the Plugin and made the required entries into plugin.xml.

This works fine running Eclipse with Java 1.3 but not on 1.4.x. The jars are never loaded, i end up in a classnotfoundexception. How is this possible?

Is there another way to include the jars? I do not want to put them on the classpath of my Development PC.

Regards,

Tobias
george
Site Admin
Posts: 2095
Joined: Thu Jan 09, 2003 2:58 pm

Post by george »

Dear Tobias,

The difference between Java 1.3 and Java 1.4 is that the later comes with a Xalan distribution. Thus the Xalan shipped with the JVM gets used and it is loaded with the system class loader while the extensions are loaded with the plugin class loader. We made some changes in the current development to set the plugin class loader as context class loader when applying transformations. This should assure that the Xalan shipped with oXygen is used and also this should make the extension jars visible. Please try the following kit:
http://www.oxygenxml.com/update/com.oxy ... .beta1.zip

and let us know how is going.

You may also find interesting the following link:
http://xml.apache.org/xalan-j/faq.html#faq-N100CB

Best Regards,
George
schierge
Posts: 2
Joined: Tue Sep 09, 2003 6:04 pm
Contact:

Post by schierge »

Hi George,

sorry but i cannot get the update version to work with the extensions, not with jdk 1.3 and not with 1.4. It ouputs the errors "unknown extension" and "...is not a valid java class resource".

I already updated the xalan but it still does not work. I'm using the Sample XML/XSL Files shipped with xalan.

These Files work fine with the Oxygen 2.0.3 and Java 1.3.

Thanks for your Help,

Tobias
george
Site Admin
Posts: 2095
Joined: Thu Jan 09, 2003 2:58 pm

Post by george »

Hi Tobias,

We tested the latest development version and it works with Java 1.3... anyway we will look closer into this and provide a solution to this problem in the next release planned for the beginning of next week. Watch this forum entry for updates.

Best Regards,
George
george
Site Admin
Posts: 2095
Joined: Thu Jan 09, 2003 2:58 pm

Post by george »

Hi Tobias,

Please get the http://www.oxygenxml.com/update/oxygen.jar and replace the one from the 2.0.4 beta1 plugin. This should work with Xalan extensions - at least it worked in our tests. Let us know if it works also for you.

Best Regards,
George
Post Reply