Hi Lou,
So if you clear the entire content of the "Information" view and then
validate the XML file, you get in the Information view only details
about the Schematron validation being applied, right? So just the two
lines of logging that you previously attached right?
Maybe you can email us directly (supp...@oxygenxml.com), send us some
samples to reproduce the problem and we can try to look further into this.
Regards,
Radu
Radu Coravu
Oxygen XML Editor
On 2/27/23 16:21, Lou Burnard wrote:
Sadly, I dont think so. I suppressed the validation scenario,. and
just ask for default validation, and again I get reports of schematron
rules only
[ 14:19:22] - Schematron Error Scanner - start scanning
file:/home/lou/Public/odd4crit/odd4crit_data.xml with schema:
file:/home/lou/Public/odd4crit/out/odd4crit.rng
[ 14:19:22] - Found 7 problems
------------------------------------------------------------------------
*From:* oXygen-user <oxygen-user-boun...@oxygenxml.com> on behalf of
Oxygen XML Editor Support (Radu Coravu) <supp...@oxygenxml.com>
*Sent:* Monday, February 27, 2023 2:15 PM
*To:* oxygen-user@oxygenxml.com <oxygen-user@oxygenxml.com>
*Subject:* Re: [oXygen-user] Validation problem
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
On 2/27/23 16:03, Lou Burnard wrote:
Hi Radu
Thanks for the quick response.
When I apply the default validation scenario I see this
[ 13:58:35] - <<< Start scanning using validation scenario
Scenario Name: odd4crit_data
Scenario Storage Type: Global Level
Default Scenario: No
[ 13:58:35] - << Validation Unit (1 of 1):
File to validate URL:
file:/home/lou/Public/odd4crit/odd4crit_data.xml
<file:/home/lou/Public/odd4crit/odd4crit_data.xml>
Validation Unit Type: XML Document
Validation Unit Engine: <Default engine>
[ 13:58:37] - Schematron Error Scanner - start scanning
file:/home/lou/Public/odd4crit/odd4crit_data.xml
<file:/home/lou/Public/odd4crit/odd4crit_data.xml> with schema:
file:/home/lou/Public/odd4crit/out/odd4crit.rng
<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
<file:/home/lou/Public/odd4crit/odd4crit_data.xml> with schema:
file:/home/lou/Public/odd4crit/out/odd4crit.rng
<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
<file:/home/lou/Public/odd4crit/odd4crit_data.xml> with schema:
file:/home/lou/Public/odd4crit/out/odd4crit.rng
<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-boun...@oxygenxml.com>
<mailto:oxygen-user-boun...@oxygenxml.com> on behalf of Oxygen XML
Editor Support (Radu Coravu) <supp...@oxygenxml.com>
<mailto:supp...@oxygenxml.com>
*Sent:* Monday, February 27, 2023 1:46 PM
*To:* oxygen-user@oxygenxml.com <mailto:oxygen-user@oxygenxml.com>
<oxygen-user@oxygenxml.com> <mailto:oxygen-user@oxygenxml.com>
*Subject:* Re: [oXygen-user] Validation problem
Hi 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"
<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"
<http://relaxng.org/ns/structure/1.0>?>
<?xml-model
href="http://www.tei-c.org/release/xml/tei/custom/schema/relaxng/tei_all.rng"
<http://www.tei-c.org/release/xml/tei/custom/schema/relaxng/tei_all.rng>
type="application/xml"
schematypens="http://purl.oclc.org/dsdl/schematron"
<http://purl.oclc.org/dsdl/schematron>?>
<TEI xmlns="http://www.tei-c.org/ns/1.0" <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 <file:/.../abc.xml>
with schema:
file:/../frameworks/tei/xml/tei/custom/schema/relaxng/tei_all.rng
<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 <file:/../abc.xml> with schema:
file:/../tei/xml/tei/custom/schema/relaxng/tei_all.rng
<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 Editor
On 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"
<http://relaxng.org/ns/structure/1.0>?>
<?xml-model href="out/odd4crit.rng" type="application/xml"
schematypens="http://purl.oclc.org/dsdl/schematron"
<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 <mailto:oXygen-user@oxygenxml.com>
https://www.oxygenxml.com/mailman/listinfo/oxygen-user
<https://www.oxygenxml.com/mailman/listinfo/oxygen-user>
_______________________________________________
oXygen-user mailing list
oXygen-user@oxygenxml.com <mailto:oXygen-user@oxygenxml.com>
https://www.oxygenxml.com/mailman/listinfo/oxygen-user
<https://www.oxygenxml.com/mailman/listinfo/oxygen-user>
_______________________________________________
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