depends 138 (AB)

Tests @depends on p:otherwise is not allowed.

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

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

Revision history

27 Jul 2021, Achim Berndzen
Added new tests for [p:] depends.