Page 1 of 1

Schematron failure in Oxygen 24

Posted: Wed Dec 08, 2021 7:37 pm
by martindholmes
Hi there,

After upgrading to Oxygen 24, we've been seeing a sporadic problem when validating files using Schematron; we don't see this issue in earlier versions of Oxygen:

Saxon-EE cannot validate with schema type text/sch

This occurs when validating a file in the editor which links to an rng schema which contains embedded Schematron; typically we have two xml-model PIs like this:

~~~~~
<?xml-model href="../schemas/coldesp.rng" type="application/xml" schematypens="http://relaxng.org/ns/structure/1.0"?>
<?xml-model href="../schemas/coldesp.rng" type="application/xml" schematypens="http://purl.oclc.org/dsdl/schematron"?>
~~~~~

Can anyone suggest what might be causing this problem? It only happens occasionally, but once it happens, it's persistent until Oxygen is restarted.

All help appreciated,
Martin

Re: Schematron failure in Oxygen 24

Posted: Wed Dec 08, 2021 9:35 pm
by martindholmes
...and we're now seeing cases where an Oxygen restart does not solve the problem.

Interestingly, regular validation-as-you-type is working fine; it's only when a user presses the red validation checkbox toolbar button or invokes the command from the menu that the error occurs. I see that in the Preferences / Editor / Document Validation / Custom Validation Engines, the first entry is for Saxon-EE (XML Editor; XSD Editor), but that option is not editable or deletable. We did not define this setting.

Re: Schematron failure in Oxygen 24

Posted: Fri Dec 10, 2021 10:07 am
by tavy
Hello Martin,

It seems that the "Saxon-EE" custom engine is selected from the Validate drop-down menu, instead of the the "Validate" action.
We already have an issue on our internal issue tracker to investigate this problem. We will update this thread when we come to a conclusion.

As an workaround, you can select the Validate action from the drop-down menu, or use the shortcut. After you select first time the Validate action, next time when you click on the Validate drop-down action, the validation will work correctly.

You can also try to deactivate the "Load file content only when switching to its corresponding editor tab" option from Options->Preferences->Global options tab. It seems that this option affects the Validate menu.
https://www.oxygenxml.com/doc/versions/ ... dy_lrs_3pb

Best Regards,
Octavian

Re: Schematron failure in Oxygen 24

Posted: Fri Dec 10, 2021 7:35 pm
by martindholmes
Thanks Octavian! We have a project which is holding off on updating Oxygen licenses because of this, so I hope it gets fixed soon.

Re: Schematron failure in Oxygen 24

Posted: Wed Dec 15, 2021 9:22 am
by tavy
Hello Martin,

We just released Oxygen XML Editor version 24.0 build id 2021121317. This build includes the fix for the issue you reported.

You can download the latest version from here:
https://www.oxygenxml.com/xml_editor/do ... ditor.html

Best Regards,
Octavian

Re: Schematron failure in Oxygen 24

Posted: Thu Dec 16, 2021 3:54 am
by Martin Holmes
Thanks again! You should have seen a purchase of a batch of licences from a UVic prof today.