Pipe 030 (AB)

Tests order of p:pipes

Test ab-pipe-030.xml is expected to pass.

The pipeline


<p:declare-step xmlns:p="http://www.w3.org/ns/xproc" name="main" version="3.0">
   <p:input port="source">
      <doc1/>
   </p:input>
   <p:input port="secondary">
      <doc2/>
   </p:input>
   <p:output port="result"/>
   <p:choose>
      <p:when test="local-name(collection()[1]/*)='doc2' and local-name(collection()[2]/*)='doc1'" collection="true">
         <p:with-input pipe="secondary@main source@main"/>
         <p:identity>
            <p:with-input>
               <right/>
            </p:with-input>
         </p:identity>
      </p:when>
      <p:otherwise>
         <p:identity>
            <p:with-input>
               <wrong/>
            </p:with-input>
         </p:identity>
      </p:otherwise>
   </p:choose>
</p:declare-step>
MorganaXProc passing XML Calabash passing

Schematron validation


<s:schema xmlns="http://www.w3.org/1999/xhtml" xmlns:s="http://purl.oclc.org/dsdl/schematron" queryBinding="xslt2">
   <s:pattern>
      <s:rule context="/">
         <s:assert test="right">The document root is not “right”.</s:assert>
      </s:rule>
   </s:pattern>
</s:schema>

Revision history

28 Mar 2022, Achim Berndzen

Test added.