Tests cycles from context item of option value.
Test ab-err-xs0001-023.xml is expected to pass.
<p:declare-step xmlns:p="http://www.w3.org/ns/xproc" xmlns:xs="http://www.w3.org/2001/XMLSchema" version="3.0">
<p:output port="result"/>
<p:identity depends="adder">
<p:with-input>
<result/>
</p:with-input>
</p:identity>
<p:add-attribute name="adder" match="/*" attribute-name="att">
<p:with-option name="attribute-value" select="xs:string(40+2)"/>
<p:with-input>
<doc/>
</p:with-input>
</p:add-attribute>
</p:declare-step>
<s:schema xmlns="http://www.w3.org/1999/xhtml" xmlns:s="http://purl.oclc.org/dsdl/schematron" queryBinding="xslt2">
<s:pattern>
<s:rule context="/">
<s:assert test="doc">The root element is not doc.</s:assert>
<s:assert test="doc/@att">There is no attribute "att" on doc.</s:assert>
<s:assert test="doc/@att='42'">The attribute value of att is not 42.</s:assert>
</s:rule>
</s:pattern>
</s:schema>
Changed test according to 3.0-specification#1043: Pipeline doesn't construct a loop.
New test.