Tests cycles are correctly detected from within complex steps.
Test ab-err-xs0001-018.xml is expected to fail with error code err:XS0001
.
<p:declare-step xmlns:err="http://www.w3.org/ns/xproc-error" xmlns:p="http://www.w3.org/ns/xproc" name="pipeline" version="3.0">
<p:output port="result"/>
<p:try>
<p:error code="Q{{http://dummy}}dummy">
<p:with-input>
<p:empty/>
</p:with-input>
</p:error>
<p:catch>
<p:identity depends="last">
<p:with-input>
<doc/>
</p:with-input>
</p:identity>
</p:catch>
</p:try>
<p:wrap-sequence wrapper="result" name="last"/>
</p:declare-step>
New test.