Connection 025

Tests correct order of multiple pipes on an input port.

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

The pipeline

<p:declare-step xmlns:p="" version="3.0">
   <p:output port="result"/>
   <p:identity name="one">
   <p:identity name="two">
   <p:wrap-sequence wrapper="wrapper">
         <p:pipe step="one" port="result"/>
         <p:pipe port="result"/>
         <p:pipe step="one"/>
         <p:pipe step="two"/>
MorganaXProc passing XML Calabash passing

Schematron validation

<s:schema xmlns="" xmlns:s="" queryBinding="xslt2">
      <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>

Revision history

10 Jun 2021, Achim Berndzen

Added attribute 'queryBinding' to schematron's schema.

22 May 2019, Achim Berndzen

Additional tests for connections