Transformation using Xalan Extensions
Having trouble installing Oxygen? Got a bug to report? Post it all here.
-
- Posts: 2
- Joined: Tue Sep 09, 2003 6:04 pm
- Contact:
Transformation using Xalan Extensions
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
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
-
- Site Admin
- Posts: 2095
- Joined: Thu Jan 09, 2003 2:58 pm
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
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
-
- Posts: 2
- Joined: Tue Sep 09, 2003 6:04 pm
- Contact:
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
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
-
- Site Admin
- Posts: 2095
- Joined: Thu Jan 09, 2003 2:58 pm
-
- Site Admin
- Posts: 2095
- Joined: Thu Jan 09, 2003 2:58 pm
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
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
Jump to
- Oxygen XML Editor/Author/Developer
- ↳ Feature Request
- ↳ Common Problems
- ↳ DITA (Editing and Publishing DITA Content)
- ↳ SDK-API, Frameworks - Document Types
- ↳ DocBook
- ↳ TEI
- ↳ XHTML
- ↳ Other Issues
- Oxygen XML Web Author
- ↳ Feature Request
- ↳ Common Problems
- Oxygen Content Fusion
- ↳ Feature Request
- ↳ Common Problems
- Oxygen JSON Editor
- ↳ Feature Request
- ↳ Common Problems
- Oxygen PDF Chemistry
- ↳ Feature Request
- ↳ Common Problems
- Oxygen Feedback
- ↳ Feature Request
- ↳ Common Problems
- Oxygen XML WebHelp
- ↳ Feature Request
- ↳ Common Problems
- XML
- ↳ General XML Questions
- ↳ XSLT and FOP
- ↳ XML Schemas
- ↳ XQuery
- NVDL
- ↳ General NVDL Issues
- ↳ oNVDL Related Issues
- XML Services Market
- ↳ Offer a Service