Tests XS0102 is raised if alternative subpipelines have different primary output ports.
Test ab-choose-004.xml is expected to fail with error code err:XS0102
.
<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/>
</p:with-input>
</p:identity>
<p:choose>
<p:when test="/doc">
<p:output port="result" primary="false"/>
<p:identity/>
</p:when>
<p:when test="true()">
<p:identity/>
</p:when>
</p:choose>
</p:declare-step>
New tests