How to export a stylesheet for Saxon-JS

Here should go questions about transforming XML with XSLT and FOP.
Martin Honnen
Posts: 96
Joined: Tue Aug 19, 2014 12:04 pm

How to export a stylesheet for Saxon-JS

Post by Martin Honnen »

According to the "what's new" section in oXygen 18.1 :
The add-on for working with Saxon 9.7 was updated to provide an action to obtain a compiled stylesheet that can be used with the new Saxon-JS
I have tried to search the documentation for Saxon-JS but I am not even sure it recognizes that as a search term. Therefore I have to ask here: how do I compile and export a stylesheet in oXygen 18.1 for use with Saxon-JS?
Radu
Posts: 9051
Joined: Fri Jul 09, 2004 5:18 pm

Re: How to export a stylesheet for Saxon-JS

Post by Radu »

Hi Martin,

Oxygen 18.1 still comes with a slightly older version of Saxon 9.6.0.7.
But in the Oxygen Help menu->Install new add-on you can choose the update site:
https://www.oxygenxml.com/InstData/Addo ... teSite.xml

and install the Saxon 9.7 addon from it. This add on cannot be used for debugging but it should allow you to compile an XSLT for Saxon JS.

Most probably Oxygen 19.0 which we plan to release in Spring next year will come already bundled with a newer Saxon 9.7.

Regards,
Radu
Radu Coravu
<oXygen/> XML Editor
http://www.oxygenxml.com
Martin Honnen
Posts: 96
Joined: Tue Aug 19, 2014 12:04 pm

Re: How to export a stylesheet for Saxon-JS

Post by Martin Honnen »

Thanks for your reply.

I understand that Saxon 9.7 is only available as a plugin and I have that installed. What my question is about is how I then use that plugin inside of oXygen to export a stylesheet for Saxon-JS? Is there any menu or setting that is geared towards that export?

Or do I have to try to use that plugin outside of oXygen from the command line, as documented in the Saxon-JS documentation http://www.saxonica.com/saxon-js/docume ... ing/export by using

Code: Select all

java net.sf.saxon.Transform -t -xsl:mytrans.xsl -export:mytrans.sef -target:JS -nogo
Radu
Posts: 9051
Joined: Fri Jul 09, 2004 5:18 pm

Re: How to export a stylesheet for Saxon-JS

Post by Radu »

Hi Martin,

Once you install the add-on and restart Oxygen, there will be a new toolbar action contributed by the plugin especially for this type of compilation.

Regards,
Radu
Radu Coravu
<oXygen/> XML Editor
http://www.oxygenxml.com
yamahito
Posts: 7
Joined: Fri Nov 11, 2011 3:39 pm

Re: How to export a stylesheet for Saxon-JS

Post by yamahito »

I was a bit disapointed to find out that this functionality isn't built-in in oxygen 23; the plug-in is now for a quite out-of-date version of saxon :(

Any chance of a Saxon-JS compiling plug-in?

Cheers,
Tom
adrian_sorop
Posts: 73
Joined: Wed Jun 22, 2016 2:48 pm

Re: How to export a stylesheet for Saxon-JS

Post by adrian_sorop »

Hi Tom,

Exporting stylesheets for Saxon-JS is a built in in Oxygen and uses Oxygen's builtin Saxon 9.9.1.7.
Here is the documentation of the builtin tool: Compiling an XSL Stylesheet for Saxon

Since Oxygen 22.1, Saxon 10.0 is available as an addon and can be installed from Oxygen's default update site: https://www.oxygenxml.com/InstData/Addo ... teSite.xml
The official name of the addon is Saxon 10.0 XSLT and XQuery Transformer. This addon contributes Saxon 10.0 processor for XSLT, XQuery, and XML Schema which can be used as a generic transformation engine.
The addon also adds a toolbar button Compile XSLT Saxon 10 that uses Saxon-JS 2.0 to compile XSLT to Stylesheet Export File.

In next maintenance release of Oxygen 23, the Saxon 10 XLST and XQuery Transformer will be bundeled with Saxon 10.3 processor for XSLT, XQuery, and XML Schema.

Best regards,
Adrian Sorop
Adrian Sorop
<oXygen/> XML Editor
http://www.oxygenxml.com
tavy
Posts: 365
Joined: Thu Jul 01, 2004 12:29 pm

Re: How to export a stylesheet for Saxon-JS

Post by tavy »

Hello,

New versions for "Saxon XSLT and XQuery Transformer" add-on are now available to install for Oxygen 23.0.

They integrate the latest available engine versions for Saxon 9.9 and 10 (9.9.1.8 and 10.3 respectively).

Best Regards,
Octavian
Octavian Nadolu
<oXygen/> XML Editor
http://www.oxygenxml.com
Post Reply