p:choose-015 (AB)

Tests that a p:when/p:with-input does not count as binding for a primary input port.

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

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"/>
   <p:choose>
      <p:when test="true()">
         <p:with-input>
            <doc/>
         </p:with-input>
         <p:identity/>
      </p:when>
      <p:otherwise name="otherwise">
         <p:identity/>
      </p:otherwise>
   </p:choose>
</p:declare-step>

Revision history

05 Apr 2019, Achim Berndzen
New tests