[oXygen-user] mysterious new validation error in ODD-generated Relax NG XML schema

Elisa Beshero-Bondar ebbondar at gmail.com
Thu May 16 01:38:04 CDT 2019


Dear oXygen list,
I generated a schema in Relax NG XML syntax from a TEI ODD file some weeks
ago, on May 6, and the schema behaved as I expected it to. It is posted on
my GitHub repo and shared with my project team, and other members of my
team worked with it in the past few weeks. I have not edited the schema
that my team using since that date.

Today one of my team members alerted me that she was seeing a strange
error, and I confirmed locally that this is on the Relax NG schema. The
error reads:
Description Effective boolean value is not defined for a sequence of two or
more items starting with a boolean
Severity Fatal
System ID
https://digitalmitford.github.io/DM_documentation/MitfordODD/out/mitfordODD.rng
Main validation file
/Users/elisa/Downloads/OVWalksInTheCountryTHECOWSLIPBALL.xml
<http://users/elisa/Downloads/OVWalksInTheCountryTHECOWSLIPBALL.xml>
Engine name ISO Schematron
Start location line: 4996, column: 0
Here is another wrinkle to the problem. In attempting to debug, I generated
a new RNG schema from the source ODD to see if that would make a
difference. Interestingly, it did, with this effect:
On attempting to validate a project XML file, I saw the same message about
the effective boolean value, only this time it pointed to a different line
in the RNG (not 4996, but 5151). In neither of these cases was the code on
these lines at all meaningful or related to the reported ISO Schematron
error. Line 4996 is the blank line below after defining the element
binaryObject.

  <define name="teibinaryObject">
      <element name="binaryObject">

         <text/>
         <ref name="teiatt.global.attributes"/>
         <ref name="teiatt.media.attributes"/>
         <ref name="teiatt.timed.attributes"/>
         <ref name="teiatt.typed.attributes"/>

...

</define>

The other line was similarly not about making a boolean test of any kind.

I do not understand what could be causing these problems, particularly
since the schema was behaving normally two weeks ago.  I cannot seem to
generate a working schema now due to this strange ISO-Schematron error that
keeps flagging different lines of my Relax NG document.

Here is a copy of my schema, which I link here from my GitHub repo:
https://raw.githubusercontent.com/DigitalMitford/DM_documentation/master/MitfordODD/out/mitfordODD.rng


And here is a project XML file associated with that schema:
https://raw.githubusercontent.com/DigitalMitford/DM_documentation/master/mrmSchemaTester.xml

I hope someone on this list can help! I don't think this is a problem with
my ODD or with ODD processing, but with something that is firing
ISO-Schematron over my RNG schema, which is expressed in XML syntax. The
strangeness of this prompted me to write to this list instead of to the
TEI.

Thanks,
Elisa



-- 
Elisa Beshero-Bondar, PhD
Associate Professor of English
University of Pittsburgh at Greensburg
Humanities Division
150 Finoli Drive
Greensburg, PA  15601  USA
E-mail: ebb8 at pitt.edu
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.oxygenxml.com/pipermail/oxygen-user/attachments/20190516/473d2c9c/attachment.html>


More information about the oXygen-user mailing list