Hi Lou,
The problem seems to be the validation scenario named "odd4crit_data". You do not need a validation scenario if the XML file references directly the schemas. And probably in your validation scenario you mentioned only the Schematron validation as a stage
and did not add a validation stage for the Relax NG based validation. So Oxygen does what your validation scenario says and skips Relax NG based validation,
Regards,
Radu
Radu Coravu Oxygen XML Editor
Hi RaduThanks for the quick response.
When I apply the default validation scenario I see this
[ 13:58:35] - <<< Start scanning using validation scenarioScenario Name: odd4crit_dataScenario Storage Type: Global LevelDefault Scenario: No[ 13:58:35] - << Validation Unit (1 of 1):File to validate URL: file:/home/lou/Public/odd4crit/odd4crit_data.xmlValidation Unit Type: XML DocumentValidation Unit Engine: <Default engine>[ 13:58:37] - Schematron Error Scanner - start scanning file:/home/lou/Public/odd4crit/odd4crit_data.xml with schema: file:/home/lou/Public/odd4crit/out/odd4crit.rng[ 13:58:37] - Found 7 problems[ 13:58:37] - >>[ 13:58:37] - End >>>
When I explicitly select the URL of my RNG file, I see this:
[ 14:01:10] - start scanning file:/home/lou/Public/odd4crit/odd4crit_data.xml with schema: file:/home/lou/Public/odd4crit/out/odd4crit.rng[ 14:01:10] - Found 2 problems[ 14:01:10] - Schematron Error Scanner - start scanning file:/home/lou/Public/odd4crit/odd4crit_data.xml with schema: file:/home/lou/Public/odd4crit/out/odd4crit.rng[ 14:01:10] - Found 7 problems
(which is what I would prefer to see!)
From: oXygen-user <oxygen-user-bounces@oxygenxml.com> on behalf of Oxygen XML Editor Support (Radu Coravu) <support@oxygenxml.com>
Sent: Monday, February 27, 2023 1:46 PM
To: oxygen-user@oxygenxml.com <oxygen-user@oxygenxml.com>
Subject: Re: [oXygen-user] Validation problemHi Lou,
Strange.
Let's say I have a stock TEI document "abc.xml" like this one below which has a similar reference to the TEI schemas (both as RNG and SCH):
<?xml version="1.0" encoding="UTF-8"?>
<?xml-model href="http://www.tei-c.org/release/xml/tei/custom/schema/relaxng/tei_all.rng"
type="application/xml" schematypens="http://relaxng.org/ns/structure/1.0"?>
<?xml-model href="http://www.tei-c.org/release/xml/tei/custom/schema/relaxng/tei_all.rng" type="application/xml"
schematypens="http://purl.oclc.org/dsdl/schematron"?>
<TEI xmlns="http://www.tei-c.org/ns/1.0">
<teiHeader>
</teiHeader>
<text>
<body>
<p>Some text here.</p>
</body>
</text>
</TEI>
I go to the Oxygen main menu "Window->Show view" and show the "Information" view.
Then validate the XML document, in the Information view I get some information like this:
[ 15:42:54] - start scanning file:/.../abc.xml with schema: file:/../frameworks/tei/xml/tei/custom/schema/relaxng/tei_all.rng
[ 15:42:54] - Found 1 problem
[ 15:42:54] - Schematron Error Scanner - start scanning file:/../abc.xml with schema: file:/../tei/xml/tei/custom/schema/relaxng/tei_all.rng
[ 15:42:54] - No problems found
Do you get similar messages in the Oxygen Information view?
Regards,
Radu
Radu Coravu Oxygen XML EditorOn 2/27/23 15:34, Lou Burnard wrote:
I have a RELAXNG schema which contains embedded schematron rules and a document which begins with two xml-model PIs like this:
<?xml-model href="out/odd4crit.rng type="application/xml"schematypens="http://relaxng.org/ns/structure/1.0"?><?xml-model href="out/odd4crit.rng" type="application/xml"schematypens="http://purl.oclc.org/dsdl/schematron"?>
When I validate this document using the default CTRL-SHIFT-V option, or using a predefined validation scenario, only Schematron validation errors are reported. When I validate by selecting "Validate with" and specifying the schema URL again, errors reported by jing also appear.
Is this the intended behaviour? Why?
I am using <oXygen/> XML Editor 24.1, build 2022030807 on Ubuntu 20.04
_______________________________________________ oXygen-user mailing list oXygen-user@oxygenxml.com https://www.oxygenxml.com/mailman/listinfo/oxygen-user
_______________________________________________ oXygen-user mailing list oXygen-user@oxygenxml.com https://www.oxygenxml.com/mailman/listinfo/oxygen-user