Checks XD0008 is raised if more than one document appears as connection of p:variable and @connection is missing even if the variable is not used.
Test ab-variable-021a-strict.xml is expected to fail with error code err:XD0001
.
It requires the following features: eager-eval.
<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:variable name="var" select="count(.)">
<doc/>
<doc/>
</p:variable>
<p:identity>
<p:with-input>
<doc/>
</p:with-input>
</p:identity>
</p:declare-step>
Marked test with feature 'eager-eval'.
Test added.