Tests function p:step-available/usw-when-deadlock.
Test ab-step-available-033.xml is expected to fail with error code err:XS0115
.
<p:declare-step xmlns:err="http://www.w3.org/ns/xproc-error" xmlns:ex="http://some-extension.org" xmlns:p="http://www.w3.org/ns/xproc" name="main" version="3.0">
<p:output port="result"/>
<p:declare-step type="ex:test" use-when="p:step-available('ex:test1')">
<p:identity>
<p:with-input>
<dummy/>
</p:with-input>
</p:identity>
</p:declare-step>
<p:declare-step type="ex:test1" use-when="p:step-available('ex:test')">
<p:identity>
<p:with-input>
<another-dummy/>
</p:with-input>
</p:identity>
</p:declare-step>
<p:identity>
<p:with-input>
<result>{p:step-available('ex:test1')}</result>
</p:with-input>
</p:identity>
</p:declare-step>
Test added.