Bug #5146

Code generation with Saxon-JS in Oxygen XML

Added by Oliver Budke about 1 month ago. Updated about 1 month ago.

Start date:
Due date:
% Done:


Estimated time:
Applies to JS Branch:
Fix Committed on JS Branch:
Fixed in JS Release:
SEF Generated with:
Contact person:
Additional contact persons:


I tried to generate the code for the sample application "City List" with Saxon-JS inside Oxygen XML (add-on).!samples/cities

However, the application is not responsive once it is run on a local webserver. When I use the provided cities.sef.json the application works fine. That's why I narrowed the problem down to this file.

I found a big diff between the two cities.sef.json files. Can someone explain where this diff comes from?


Oxygen XML 23.1 Saxon 10.3 (no config file, -relocatable) Google Chrome / Mozilla Firefox (latest version) Saxon-JS 2.2 / 2.3 "Web Server for Chrome"

cities.sef.json (12.8 KB) cities.sef.json Oliver Budke, 2021-10-26 15:22
clipboard-202110261604-98tot.png (18.4 KB) clipboard-202110261604-98tot.png Screenshot of the add-on Oliver Budke, 2021-10-26 16:04


#1 Updated by Oliver Budke about 1 month ago

The generated SEF is attached.

#2 Updated by Debbie Lockett about 1 month ago

A non-responsive application in the browser usually means that the SEF has been produced without the necessary namespace option; from the command line this is: -ns:##html5.

Is it possible to set this in the Oxygen XML add-on you're using? (I've got an older version of Oxygen, and I can't see it there unfortunately.)

#3 Updated by Oliver Budke about 1 month ago

Hello Debbie,

thanks for the quick reply. I could not set this option in Oxygen XML. My Oxygen add-on interface is attached. How can I set this in a configuration file?

#4 Updated by Debbie Lockett about 1 month ago

Oh dear, indeed it looks like this is an oversight for the Oxygen XML add-on; so should be raised as a bug directly with them.

I'm afraid I don't think it is possible to set the options for generating a Saxon-JS SEF using a configuration file. Sorry.

#5 Updated by Michael Kay about 1 month ago

I've invited Octavian (of Oxygen support) to comment here.

#6 Updated by Octavian Nadolu about 1 month ago

We investigated this issue and it seems that the problem is the -ns option, as Debbie said. You cannot set this option from the Oxygen XML Saxon add-on. From what I looked in the code this option must be set in the "XsltCompiler", and cannot be passed through the file configuration.

We added an issue on our side to add the option in the add-on interface, and then set it in the "XsltCompiler". When the issue will be solved we will release a new version of the add-on.

#7 Updated by Michael Kay about 1 month ago

Let me add one other point. The differences between the two SEF files are, I assume, because they were generated by two different compilers. The XJ compiler (written in Java, part of Saxon-EE) does much more static type checking and optimization than the XX compiler (written in XSLT, part of Saxon-JS), so the SEF files they produce will be quite different.

#8 Updated by Debbie Lockett about 1 month ago

In this instance, the SEFs are in fact both generated by Saxon-EE. The differences all come down to the use of the -ns option.

Please register to edit this issue

Also available in: Atom PDF Tracking page