Connection 007

Tests that the primary output port of the last step of a subpipeline is not connected to the pipelines primary output port, if the later has an explicit connection.

Test ab-connection-007.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" primary="true">
      <p:pipe step="one" port="result"/>
   </p:output>
   <p:identity name="one">
      <p:with-input port="source">
         <one/>
      </p:with-input>
   </p:identity>
   <p:identity name="two">
      <p:with-input>
         <two/>
      </p:with-input>
   </p:identity>
</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="one">The root is not one.</s:assert>
         <s:assert test="count(one/node())=0">The root element does not have children.</s:assert>
      </s:rule>
   </s:pattern>
</s:schema>

Revision history

10 Jun 2021, Achim Berndzen

Added attribute 'queryBinding' to schematron's schema.

15 Sep 2018 11:06, Achim Berndzen

Some tests changed and new tests

02 Jun 2018 17:53, Norman Walsh

Fix namespace declarations

29 Dec 2017 19:20, Achim Berndzen

Creating new tests, extending rng and corrected xproc's test