Tests XS022 is raised if pipe on p:with-option contains loop to same step.
Test ab-pipe-005.xml is expected to fail with error code err:XS0022
.
<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:identity name="producer">
<p:with-input>
<doc a="42"/>
</p:with-input>
</p:identity>
<p:sink name="sink"/>
<p:add-attribute name="att" attribute-name="att">
<p:with-input>
<result/>
</p:with-input>
<p:with-option name="attribute-value" select="/doc/@a" pipe="@att"/>
</p:add-attribute>
</p:declare-step>
Changed expected error code from XS0001.
Checks p:pipe on p:with-option