Connection 003

If an output port on a compound step is not a primary output port, then it will not be connected to the last step in the subpipeline. In this test, the pipeline’s result output port is not connected, so it receives no documents. It is also not declared to accept a sequence, so it must receive exactly one document. Consequently, err:XD0007 is raised.

Test is expected to fail with error code err:XD0007.

The pipeline

<p:declare-step xmlns:err="http://www.w3.org/ns/xproc-error"
                xmlns:p="http://www.w3.org/ns/xproc"
                xmlns:t="http://xproc.org/ns/testsuite/3.0" version="3.0">
   <p:output port="result" primary="false"/>
   <p:identity>
      <p:with-input port="source">
         <t:doc/>
      </p:with-input>
   </p:identity>
</p:declare-step>

Revision history

11 Oct 2018, Achim Berndzen
Fixed error code expected.
11 Oct 2018, Norman Walsh
Improve the description of the test.
15 Sep 2018, Achim Berndzen
Some tests changed and new tests
02 Jun 2018, Norman Walsh
Fix namespace declarations
29 Dec 2017, Achim Berndzen
Creating new tests, extending rng and corrected xproc's test