Tests XS002 is raised for double names.
Test ab-err-s0002-13.xml is expected to fail with error code err:XS0002
.
It requires the following features: file-steps.
<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 name="name">
<p:when test="true()">
<p:identity>
<p:with-input>
<doc1/>
</p:with-input>
</p:identity>
</p:when>
<p:otherwise name="name">
<p:identity>
<p:with-input>
<doc2/>
</p:with-input>
</p:identity>
</p:otherwise>
</p:choose>
</p:declare-step>
New test.