Page 1 of 1

Validation scenario bug

Posted: Fri Jan 25, 2019 11:56 am
by Oleksii
I want to validate an xml-document with two file in one Scenario:

- Relax NG with embedded schematron rules"
- an external schematron file

Configuring Relax NG:
>Configure Transformation Scenario > use detected schema
is not possible to choose Embedded schematron rules
>Configure Transformation Scenario > use custom schema
The problem is with schematron phase:
The schematron phase of RelaxNG is by defualt the one which is defined in the external schematron file. But this phase is not present in the Relax NG and causes an error, there are acutally no phases at all. The workaround is: first edit scenario for an external schematron file: choose "prompt for phase", then edit the scenario for relax NG and choose "prompt for phase", then again go to the external schematron an choose the right phase. Somehow doesn't look well for me. :)

Re: Validation scenario bug

Posted: Wed Jan 30, 2019 6:15 pm
by adrian
Hi,

For custom validation scenarios, currently there is no support for choosing a specific phase when validating with embedded schematron (RelaxNG or XML Schema). Currently there's no way to specify the phase. It's not a UI bug, it's something that is not implemented in the validation system. I've logged an improvement request to support this in a future version.

I don't see how the workaround you mentioned would be working since there is no implementation that would connect the dots and relay the phase to the validator. If you are relying on what you see grayed out in the UI, that is just a disabled "Schematron phase" combo box that has not been cleared from the previous use of the dialog (when you used a Schematron schema type).

Regards,
Adrian

Re: Validation scenarios bug

Posted: Mon Aug 29, 2022 12:45 pm
by Oleksii
Hi,
I'd like to ask for update on this issue for oXygen versions higher than 20.1.
To clarify the issue: I do not need a phase when validating Relax NG with embedded schematron (first URL). The phase is defined in the second URL which is pure schematron, not embedded. The problem is that oXygen automatically configures the phase for the first URL based on the phase defined for the second URL. Obviously the first URL does not contain the phase so an error prompts. This is a bug on my opinion.

Re: Validation scenario bug

Posted: Fri Sep 02, 2022 12:51 pm
by tavy
Hello,

Thanks for your feedback.
From what I tested, using Oxygen XML Editor 24.1 build 2022062007, the phase specified for the Schematron validation is not used for embedded Schematron rules from the RelaxNG schema. In case you declare the phases also in embedded Schematron rules from the RelaxNG schema, you will be able to specify the phase in the validation scenario. In case you do not declare phases in the embedded Schematron rules from the RelaxNG schema, all the rules will be applied.
Maybe you can try to test with Oxygen XML Editor 24.1, in case it does not work maybe you can send us some sample files to try to reproduce the situation.

Best Regards,
Octavian