Tests that XD0007 is raised if sequence arrives on a non-sequence output port.
Test ab-output-011.xml is expected to fail with error code err:XD0007
.
<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" sequence="true"/>
<p:choose>
<p:when test="false()">
<p:output port="result"/>
<p:identity>
<p:with-input>
<result/>
</p:with-input>
</p:identity>
</p:when>
<p:otherwise>
<p:output port="result"/>
<p:identity>
<p:with-input>
<one/>
<two/>
</p:with-input>
</p:identity>
</p:otherwise>
</p:choose>
</p:declare-step>
Added new tests