p:choose-007 (AB)

Tests XD0001 is raised if more than one document appears on the connection for this input port.

Test ab-choose-007.xml is expected to fail with error code err:XD0001.

The pipeline


<p:declare-step xmlns:err="http://www.w3.org/ns/xproc-error" xmlns:p="http://www.w3.org/ns/xproc" version="3.0">
   <p:output port="result"/>
   <p:identity>
      <p:with-input>
         <doc/>
         <doc/>
      </p:with-input>
   </p:identity>
   <p:choose>
      <p:when test="/doc">
         <p:identity/>
      </p:when>
      <p:otherwise>
         <p:identity/>
      </p:otherwise>
   </p:choose>
</p:declare-step>
MorganaXProc passing XML Calabash passing

Revision history

22 Apr 2019, Achim Berndzen

Adapted test to new context item strategy, new error code.

05 Apr 2019, Achim Berndzen

New tests