Test that a secondary output port binds to the default input, not the default readable port.
Test nw-drp-001.xml is expected to pass.
<p:declare-step 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">
<alternate-input/>
</p:input>
<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>
<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="alternate-input">The root element is not correct.</s:assert>
</s:rule>
</s:pattern>
</s:schema>
Added test.