Tests that p:whens are not sibling steps in the usual sense (not visible, so XS0022 is raised).
Test ab-choose-013.xml is expected to fail with error code err:XS0022
.
<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:choose>
<p:when test="true()">
<p:identity>
<p:with-input pipe="@otherwise"/>
</p:identity>
</p:when>
<p:otherwise name="otherwise">
<p:identity>
<p:with-input>
<doc/>
</p:with-input>
</p:identity>
</p:otherwise>
</p:choose>
</p:declare-step>
New tests