Page 1 of 1

Change of default Xalan version

Posted: Thu Sep 11, 2008 4:02 pm
by suni
Does anybody know, if it is possible to completely replace the Xalan packed with Oxygen with different Xalan version?

The problem is that I have to use old Xalan version 2.6.0 in my transformations, because the new version work improperly with EXSLT evaluation function. Although it is possible to set up another transformer as a JAXP transformer or custom engine in Oxygen, neither one cannot be used for XSLT debugging :(

So my idea is to use Xalan which is available in debugger after changing the physical Xalan version in behind. Therefore I tried to replace xalan.jar file in Oxygen lib directory with the old Xalan version, but XSLT debugger reports an error and doesn't make any output. Replacing both xalan.jar and xercesImpl.jar with old versions causes Oxygen not to start.

Re: Change of default Xalan version

Posted: Thu Sep 11, 2008 4:27 pm
by sorin_ristache
Hello,

For debugging you should use one of the built-in versions of the XSLT processors and you cannot use an external processor defined from Options / Preferences / XML / XSLT-FO-XQuery / Custom Engines. Changing the version of a processor by replacing some jar files in the folder [Oxygen-install-folder]/lib usually does not work due to API changes in the processors between two different versions. The errors are one of NoSuchMethodError and NoClassDefFoundError.

Oxygen version 8.2 includes Xalan version 2.5.1. If this version is good for you please use this version which works also with a license key for version 9. Also you can try to replace the Xalan jar file with the one for version 2.6.0 hoping that there were not changes in the Xalan API between versions 2.5.1 and 2.6.0. Anyway we do not support changing the version of a processor by replacing the jar files in the lib folder.


Regards,
Sorin

Re: Change of default Xalan version

Posted: Thu Sep 11, 2008 9:23 pm
by suni
Hello sorin,

although your hint is not exactly of that kind I was hoping in, thank you very much for it! I will give it a try...

Regards.