Step available 034 (AB)
Test is expected to fail with error code err:XS0115.
The pipeline
<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"
xmlns:t="http://xproc.org/ns/testsuite/3.0" 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:test2')">
<p:identity>
<p:with-input>
<another-dummy/>
</p:with-input>
</p:identity>
</p:declare-step>
<p:declare-step type="ex:test2"
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>
Revision history
- 18 Dec 2021, Achim Berndzen
Test added.