Tests XD0001 is raised if no context item is given for p:when/@test
Test ab-choose-010.xml is expected to fail with error code err:XD0001
.
<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="/doc">
<p:identity>
<p:with-input>
<doc1/>
</p:with-input>
</p:identity>
</p:when>
<p:otherwise>
<p:identity>
<p:with-input>
<doc2/>
</p:with-input>
</p:identity>
</p:otherwise>
</p:choose>
</p:declare-step>
Changed error code because now we have XD0001 to cover this case.
New tests