Page 1 of 1

How to export a stylesheet for Saxon-JS

Posted: Sat Oct 22, 2016 10:58 pm
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?

Re: How to export a stylesheet for Saxon-JS

Posted: Mon Oct 24, 2016 9:18 am
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

Re: How to export a stylesheet for Saxon-JS

Posted: Mon Oct 24, 2016 1:39 pm
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

Re: How to export a stylesheet for Saxon-JS

Posted: Mon Oct 24, 2016 1:42 pm
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

Re: How to export a stylesheet for Saxon-JS

Posted: Thu Nov 26, 2020 1:53 pm
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

Re: How to export a stylesheet for Saxon-JS

Posted: Fri Nov 27, 2020 11:52 am
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

Re: How to export a stylesheet for Saxon-JS

Posted: Tue Dec 22, 2020 1:40 pm
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