Test XD0001 is raised, if more than one document appears on the connection for the p:if test expression. (@collection='false')
Test ab-if-003.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:identity>
<p:with-input>
<doc1/>
<doc2/>
</p:with-input>
</p:identity>
<p:if test="." collection="false">
<p:identity/>
</p:if>
</p:declare-step>
Adapted test to new context item strategy, new error code.
New tests