Test that a secondary output port binds to the default input, not the default readable port. It’s an error if there is no default input.
Test nw-drp-002.xml is expected to fail with one of the following error codes: err:XS0003
or err:XS0032
.
<p:declare-step xmlns:err="http://www.w3.org/ns/xproc-error" xmlns:ex="http://example.com/" xmlns:p="http://www.w3.org/ns/xproc" name="main" version="3.0">
<p:output port="result" pipe="secondary"/>
<p:declare-step type="ex:test" name="ptest">
<p:input port="source" primary="true">
<primary-input/>
</p:input>
<p:input port="alternate"/>
<p:output port="result" primary="true" pipe="@primary-out"/>
<p:output port="secondary" pipe="@secondary-out"/>
<p:identity name="primary-out">
<p:with-input pipe="source@ptest"/>
</p:identity>
<p:identity name="secondary-out">
<p:with-input pipe="alternate@ptest"/>
</p:identity>
</p:declare-step>
<p:identity>
<p:with-input>
<DRP/>
</p:with-input>
</p:identity>
<ex:test/>
</p:declare-step>
Added test.