p:choose-006 (AB)

Tests XS0102 is raised if alternative subpipelines have different primary output ports.

Test ab-choose-006.xml is expected to fail with error code err:XS0102.

The pipeline


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

Revision history

05 Apr 2019, Achim Berndzen

New tests