How to export a stylesheet for Saxon-JS

Here should go questions about transforming XML with XSLT and FOP.
Martin Honnen
Posts: 44

How to export a stylesheet for Saxon-JS

Sat Oct 22, 2016 10:58 pm

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: 5872

Re: How to export a stylesheet for Saxon-JS

Mon Oct 24, 2016 9:18 am

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/Addons/default/updateSite.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: 44

Re: How to export a stylesheet for Saxon-JS

Mon Oct 24, 2016 1:39 pm

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: 5872

Re: How to export a stylesheet for Saxon-JS

Mon Oct 24, 2016 1:42 pm

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

Return to “XSLT and FOP”

Who is online

Users browsing this forum: No registered users and 0 guests