Output port declaration 015 (AB)

Tests pipe on output port declaration

Test ab-output-declaration-015.xml is expected to pass.

The pipeline


      <p:declare-step xmlns:p="http://www.w3.org/ns/xproc" version="3.0" name="main">
         <p:output port="result"/>
         
         <p:try>
            <p:error code="test:error">
               <p:with-input><some-code xmlns=""/></p:with-input>
            </p:error>
            
            <p:catch name="catcher">
               <p:group>
                  <p:output port="result">
                     <p:pipe port="error" step="catcher"/>
                  </p:output>
                  <p:identity>
                     <p:with-input><not-correct xmlns=""/></p:with-input>
                  </p:identity>
               </p:group>
            </p:catch>
         </p:try>
      </p:declare-step>
   
MorganaXProc passing

Schematron validation


      <s:schema xmlns:s="http://purl.oclc.org/dsdl/schematron">
         <s:ns prefix="c" uri="http://www.w3.org/ns/xproc-step"/>
         <s:pattern>
            <s:rule context="/">
               <s:assert test="c:errors">The pipeline root is not "c:errors".</s:assert>
               <s:assert test="count(c:errors/c:error)">There is not exactly one c:error child.</s:assert>
               <s:assert test="c:errors/c:error/@code='test:error'">The code attribute of c:error is not right.</s:assert>
               <s:assert test="c:errors/c:error/some-code">Element c:error does not have a child some-code.</s:assert>
            </s:rule>
         </s:pattern>
      </s:schema>
   

Revision history

09 May 2020, Achim Berndzen

New tests