Connection 026

Tests correct order of multiple pipes on an output port.

Test ab-connection-026.xml is expected to pass.

The pipeline


      <p:declare-step xmlns:p="http://www.w3.org/ns/xproc" version="3.0">
            <p:output port="result"/>
            
            <p:declare-step type="test:test">
               <p:output port="result" sequence="true">
                  <p:pipe step="one" port="result"/>
                  <p:pipe port="result"/>
                  <p:pipe step="one"/>
                  <p:pipe step="two"/>
               </p:output>
               <p:identity name="one">
                  <p:with-input><one xmlns=""/></p:with-input>
               </p:identity>
         
               <p:identity name="two">
                  <p:with-input><two xmlns=""/></p:with-input>
               </p:identity>
            </p:declare-step>   
            
            <test:test xmlns:test="http://test"/>
            <p:wrap-sequence wrapper="wrapper">
               <p:with-input>
                  
               </p:with-input>
            </p:wrap-sequence>
        </p:declare-step>
   
MorganaXProc passing

Schematron validation


      <s:schema xmlns:s="http://purl.oclc.org/dsdl/schematron">
         <s:pattern>
            <s:rule context="/">
               <s:assert test="wrapper">The root is not 'wrapper'.</s:assert>
               <s:assert test="count(wrapper/*)=4">The root element should have exactly four child.</s:assert>
               <s:assert test="wrapper/*[1]/name()='one'">First child is not named 'one'.</s:assert>
               <s:assert test="wrapper/*[2]/name()='two'">Second child is not named 'two'.</s:assert>
               <s:assert test="wrapper/*[3]/name()='one'">Third child is not named 'one'.</s:assert>
               <s:assert test="wrapper/*[4]/name()='two'">Forth child is not named 'two'.</s:assert>
            </s:rule>
         </s:pattern>
      </s:schema>
   

Revision history

22 May 2019, Achim Berndzen

Additional tests for connections