Dear Council,
Are any of you seeing mysterious problems with ODD-generated schemas since we returned from DC? I'm not sure what's going on here, but a schema that was functioning on my project files in the first week of May--a schema that I have in no way altered--is suddenly today refusing to validate, with a bizarre ISO-Schematron error pointed at a line that makes no sense at all. When I try to generate a new version of the schema, the error appears again pointing at a completely different line. I've written up the problem to the oXygen-user mailing list to see what they advise. My message with more details on the errors, with links to my files is below.

Baffled,
Elisa

---------- Forwarded message ---------
From: Elisa Beshero-Bondar <ebbondar@gmail.com>
Date: Thu, May 16, 2019 at 2:38 AM
Subject: mysterious new validation error in ODD-generated Relax NG XML schema
To: <oxygen-user@oxygenxml.com>


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: 
DescriptionEffective boolean value is not defined for a sequence of two or more items starting with a boolean
SeverityFatal
System IDhttps://digitalmitford.github.io/DM_documentation/MitfordODD/out/mitfordODD.rng
Main validation file/Users/elisa/Downloads/OVWalksInTheCountryTHECOWSLIPBALL.xml
Engine nameISO Schematron
Start locationline: 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@pitt.edu