configurate JAXP with other Saxon versions

Having trouble installing Oxygen? Got a bug to report? Post it all here.
ronix
Posts: 12
Joined: Wed Oct 31, 2007 1:25 pm

configurate JAXP with other Saxon versions

Post by ronix »

Hi folks!

i’m trying to configure a transformation scenario with an earlier version of Saxon. Currently I use the Oxygen 10.0 with Saxon-B 9.1.0.3 but I need for some projects the saxonb8-7-3j.
Following the instructions in the user manual I set the JAXP as transformer in my scenario, configured the “javax.xml.transform.TransformerFactory” to “net.sf.saxon.TransformerFactoryImpl” and copied the saxon8-jars to the oxygen lib. The following transformation with JAXP succeed but I am not sure that there was used the desired saxon8 because:
1. all of the saxon versions used the same factory configuration.
2. in the lib-directory (plugins\com.oxygenxml.editor_10.0.0\lib\) there are also the other saxon *.jar files used from the current saxon9 version.
Actually there was an error message I get only if my code is used with the saxon9, so I am pretty sure it was again the 9.
I tried also to remove some of the saxon9 jar files from the oxygen lib directory (saxon9sa.jar, saxon9-dom.jar), but this affected the Oxygen functionality.

So - I am afraid I need some help :-)

Regards!
sorin_ristache
Posts: 4141
Joined: Fri Mar 28, 2003 2:12 pm

Re: configurate JAXP with other Saxon versions

Post by sorin_ristache »

Hello,

You should not use a different version of Saxon as JAXP processor because the class name is the same as for the built-in version of Saxon and the built-in version may be loaded from classpath before your version. You should set your version of Saxon as custom XSLT processor and set the custom XSLT processor as transformer in the scenario.


Regards,
Sorin
ronix
Posts: 12
Joined: Wed Oct 31, 2007 1:25 pm

Re: configurate JAXP with other Saxon versions

Post by ronix »

Thanks, this works well! :-)
Post Reply