ab-validate-with-schematron-015

Testing that XC0054 is raised if documents is not valid.

Test ab-validate-with-schematron-015.xml is expected to fail with error code err:XC0054.

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

The pipeline


<p:declare-step xmlns:err="http://www.w3.org/ns/xproc-error" 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">
         <doc/>
      </p:with-input>
      <p:with-input port="schema">
         <sch:schema xmlns:sch="http://purl.oclc.org/dsdl/schematron" queryBinding="xslt2">
            <sch:pattern>
               <sch:rule context="/">
                  <sch:report test="true()">Text</sch:report>
               </sch:rule>
            </sch:pattern>
         </sch:schema>
      </p:with-input>
   </p:validate-with-schematron>
</p:declare-step>
MorganaXProc passing

Revision history

01 Feb 2022, Achim Berndzen

Initial commit