[oXygen-user] Validation problem
Lou Burnard
lou.burnard at retired.ox.ac.uk
Mon Feb 27 08:03:43 CST 2023
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
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 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 at oxygenxml.com> on behalf of Oxygen XML Editor Support (Radu Coravu) <support at oxygenxml.com>
Sent: Monday, February 27, 2023 1:46 PM
To: oxygen-user at oxygenxml.com <oxygen-user at 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 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 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 at oxygenxml.com<mailto:oXygen-user at oxygenxml.com>
https://www.oxygenxml.com/mailman/listinfo/oxygen-user
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.oxygenxml.com/pipermail/oxygen-user/attachments/20230227/6fb853c3/attachment.htm>
More information about the oXygen-user
mailing list