Configure Saxon 9.5 HE for xslt 2.0 transformation.

Here should go questions about transforming XML with XSLT and FOP.
harikumar_23
Posts: 2
Joined: Thu Sep 19, 2013 10:04 am

Configure Saxon 9.5 HE for xslt 2.0 transformation.

Post by harikumar_23 »

Hi,

Please, could anybody tell me how to configure/add jar file saxon9he.jar for xslt transformations in Oxygen 14.
adrian
Posts: 2879
Joined: Tue May 17, 2005 4:01 pm

Re: Configure Saxon 9.5 HE for xslt 2.0 transformation.

Post by adrian »

Hello,

Please note that because of the tight integration (validation, debugging, etc), you cannot upgrade (or change to a different edition: HE/EE) the version of Saxon 9 EE (Oxygen/lib/saxon9ee.jar) that comes bundled with Oxygen.

However, you can use a different version of Saxon in Oxygen as an external XSLT engine. You can configure it in Options > Preferences, XML > XSLT-FO-XQuery > Custom Engines. Press New, select engine type: XSLT and give it a proper name. e.g. "Saxon-HE 9.5".
In the command line of the custom engine use:

Code: Select all

${oxygenInstallDir}/jre/bin/java -jar path/to/saxon/lib/saxon9he.jar "-s:${xml}" "-xsl:${xsl}" "-o:${out}"
(do not omit the quotes)
On OS X you should simply use 'java' instead of '${oxygenInstallDir}/jre/bin/java'.

You can then choose this newly defined engine from the Transformer combo when configuring a transformation scenario: Document -> Transformation -> Configure Transformation Scenario(s), New/Edit.
Note that this is not available in the XSLT Debugger, only the bundled version of Saxon can be used within the debugger.

Regards,
Adrian
Adrian Buza
<oXygen/> XML Editor, Schema Editor and XSLT Editor/Debugger
http://www.oxygenxml.com
Post Reply