ab-validate-with-schematron-001

Testing schematron validation: result should be equal to source.

Test ab-validate-with-schematron-001.xml is expected to pass.

It requires the following features: p-validate-with-schematron.

The pipeline


<p:declare-step xmlns:p="http://www.w3.org/ns/xproc" name="pipeline" version="3.0">
  <p:output port="result"/>
  
  <p:validate-with-schematron>
    <p:with-input port="source" href="../documents/docbook-valid.xml"/>
    <p:with-input port="schema" href="../documents/docbook.sch"/>
  </p:validate-with-schematron>
</p:declare-step>
MorganaXProc passing XML Calabash failing

Schematron validation


    <s:schema xmlns:s="http://purl.oclc.org/dsdl/schematron">
      <s:pattern>
        <s:rule context="/">
          <s:assert test="deep-equal(., doc('../documents/docbook-valid.xml'))">The document is not equal to the source document.</s:assert>
        </s:rule>
      </s:pattern>
    </s:schema>
  

Revision history

18 Aug 2019, Achim Berndzen

Initial publication: Test ported from 1.0 test suite