Custom Engines in Oxygen 8.0

Here should go questions about transforming XML with XSLT and FOP.
jvernon
Posts: 2
Joined: Thu Sep 17, 2009 6:10 pm

Custom Engines in Oxygen 8.0

Post by jvernon »

I am trying to install the Saxon9HE in Oxygen 8.0 but I am having some issues.

I copied the saxon9he.jar file to the C:\Program Files\Oxygen XML Editor 8.0\lib location and I have read the instructions located here, http://www.oxygenxml.com/doc/ug-oxygen/ ... gines.html and http://sourceforge.net/apps/mediawiki/s ... _on_Oxygen and I haven't had any luck. Or I just don't understand the instructions.

It is probably an issue with the command line portion of the custom engines configuration.

Thanks,
Jason
sorin_ristache
Posts: 4141
Joined: Fri Mar 28, 2003 2:12 pm

Re: Custom Engines in Oxygen 8.0

Post by sorin_ristache »

Hello,

Did you set your custom XSLT engine in a transformation scenario? What error do you get when you try to use the custom engine in an XSLT transformation?

Does the command that you set for the custom XSLT engine work at a command line outside Oxygen? If yes please post it here.


Regards,
Sorin
jvernon
Posts: 2
Joined: Thu Sep 17, 2009 6:10 pm

Re: Custom Engines in Oxygen 8.0

Post by jvernon »

I spoke with an IT resource at my company and they said my command line was incorrect but they didn't know off hand what it should be.

Do you have instructions on how the construct the correct command line to use this custom engine? The location of my jar file is:
C:\Program Files\Oxygen XML Editor 8.0\lib\saxon9he.jar

Thanks,
Jason
sorin_ristache
Posts: 4141
Joined: Fri Mar 28, 2003 2:12 pm

Re: Custom Engines in Oxygen 8.0

Post by sorin_ristache »

Hello,

You find the command line of an external engine in the documentation of that engine. For example for Saxon 9 EE the command line is the following and for Saxon 9 HE it should be similar:

Code: Select all

java -cp saxon9ee.jar;. net.sf.saxon.Transform -s:file.xml -xsl:stylesheet.xsl
When you configure the external engine in Preferences -> XML -> XSLT-FO-XQuery -> Custom Engines you can use in the command line the editor variables from the window opened by the small arrow button: ${xml}, ${xmlu}, ${xsl}, ${xslu}, etc. for example:

Code: Select all

java -cp saxon9ee.jar;. net.sf.saxon.Transform -s:${xml} -xsl:${xsl}

Regards,
Sorin
Post Reply