<div dir="ltr">Many thanks to Jirka and Peter for their replies, which precisely identified the problem with my ODD's Schematron rules testing sequences of values. Jirka, thanks also for explaining why the error messages seemed so random! I've implemented the changes each of you suggested and the schema is validating properly now.<div><br></div><div>Cheers,</div><div>Elisa</div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Thu, May 16, 2019 at 5:24 AM Jirka Kosek <<a href="mailto:jirka@kosek.cz">jirka@kosek.cz</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">On 16.5.2019 8:38, Elisa Beshero-Bondar wrote:<br>
> Engine name ISO Schematron<br>
> Start location line: 4996, column: 0<br>
<br>
Hi Elisa,<br>
<br>
I suppose that oXygen points you to a wrong location as internaly it has<br>
to extract Schematron from RELAX NG file, then compile it to XSLT and<br>
then finally XSLT is run over your XML. oXygen probably can't track<br>
error from XSLT back to Schematron and then back to RELAX NG file (it<br>
would be very hard to do so.)<br>
<br>
Problem is in few of your expressions. If you change<br>
<br>
<sch:report role="info" test="$backRefs"><br>
to<br>
<sch:report role="info" test="not(empty($backRefs))"><br>
<br>
<sch:report role="info" test="$backRefs and not($siRefs)"><br>
to<br>
<sch:report role="info" test="not(empty($backRefs)) and empty($siRefs)"><br>
<br>
<sch:report role="warning" test="not($backRefs) and not($siRefs)"><br>
to<br>
<sch:report role="warning" test="empty($backRefs) and empty($siRefs)"><br>
<br>
ie. using empty() to check for empty sequence, your validation should be<br>
working again.<br>
<br>
                                        Jirka<br>
<br>
-- <br>
------------------------------------------------------------------<br>
  Jirka Kosek      e-mail: <a href="mailto:jirka@kosek.cz" target="_blank">jirka@kosek.cz</a>      <a href="http://xmlguru.cz" rel="noreferrer" target="_blank">http://xmlguru.cz</a><br>
------------------------------------------------------------------<br>
     Professional XML and Web consulting and training services<br>
DocBook/DITA customization, custom XSLT/XSL-FO document processing<br>
------------------------------------------------------------------<br>
    Bringing you XML Prague conference    <a href="http://xmlprague.cz" rel="noreferrer" target="_blank">http://xmlprague.cz</a><br>
------------------------------------------------------------------<br>
<br>
</blockquote></div><br clear="all"><div><br></div>-- <br><div dir="ltr" class="gmail_signature">Elisa Beshero-Bondar, PhD<br>Associate Professor of English<br>University of Pittsburgh at Greensburg<br>Humanities Division<br>150 Finoli Drive<br>Greensburg, PA  15601  USA<br>E-mail: <a href="mailto:ebb8@pitt.edu" target="_blank">ebb8@pitt.edu</a></div>