nw-drp-002

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 is expected to fail with with one of these error codes: err:XS0003, err:XS0032.

The pipeline

<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"
                xmlns:t="http://xproc.org/ns/testsuite/3.0" 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>

Revision history

08 Mar 2025, Norm Tovey-Walsh
Added test.