Pipe 028 (AB)

Tests order of p:pipes

Test ab-pipe-028.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:viewport match="result/child">
      <p:with-input>
         <result>
            <child/>
         </result>
      </p:with-input>
      <p:identity>
         <p:with-input pipe="secondary@main source@main">
      </p:identity>
   </p:viewport>
</p:declare-step>
MorganaXProc 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="result">The document root is not “result”.</s:assert>
         <s:assert test="local-name(result/*[1])='doc2'">First child of result is not named 'doc2'.</s:assert>
         <s:assert test="local-name(result/*[2])='doc1'">Second child of result is not named 'doc1'.</s:assert>
      </s:rule>
   </s:pattern>
</s:schema>

Revision history

27 Mar 2022, Achim Berndzen

Test added.