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

Jirka Kosek jirka at kosek.cz
Thu May 16 04:24:40 CDT 2019


On 16.5.2019 8:38, Elisa Beshero-Bondar wrote:
> Engine name ISO Schematron
> Start location line: 4996, column: 0

Hi Elisa,

I suppose that oXygen points you to a wrong location as internaly it has
to extract Schematron from RELAX NG file, then compile it to XSLT and
then finally XSLT is run over your XML. oXygen probably can't track
error from XSLT back to Schematron and then back to RELAX NG file (it
would be very hard to do so.)

Problem is in few of your expressions. If you change

<sch:report role="info" test="$backRefs">
to
<sch:report role="info" test="not(empty($backRefs))">

<sch:report role="info" test="$backRefs and not($siRefs)">
to
<sch:report role="info" test="not(empty($backRefs)) and empty($siRefs)">

<sch:report role="warning" test="not($backRefs) and not($siRefs)">
to
<sch:report role="warning" test="empty($backRefs) and empty($siRefs)">

ie. using empty() to check for empty sequence, your validation should be
working again.

					Jirka

-- 
------------------------------------------------------------------
  Jirka Kosek      e-mail: jirka at kosek.cz      http://xmlguru.cz
------------------------------------------------------------------
     Professional XML and Web consulting and training services
DocBook/DITA customization, custom XSLT/XSL-FO document processing
------------------------------------------------------------------
    Bringing you XML Prague conference    http://xmlprague.cz
------------------------------------------------------------------

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 195 bytes
Desc: OpenPGP digital signature
URL: <http://www.oxygenxml.com/pipermail/oxygen-user/attachments/20190516/20f2c85e/attachment.sig>


More information about the oXygen-user mailing list