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.

See also Primary Inputs and Outputs[XP] and p:output[XP].

Test ab-connection-003.xml is expected to fail with error code err:XD0007.

The pipeline

      <p:declare-step xmlns:p="" version="3.0">
         <p:output port="result" primary="false"/>
            <p:with-input port="source">
               <t:doc xmlns:t=""/>
MorganaXProc passing XML Calabash passing

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 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