Checks
no error is raised if more than one document
appears as connection on
p:variable
if there’s no reference
to the context item.
Test ab-variable-021b.xml is expected to pass.
<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="5">
<doc/>
<doc/>
</p:variable>
<p:identity>
<p:with-input>
<doc>{$var}</doc>
</p:with-input>
</p:identity>
</p:declare-step>
<s:schema xmlns="http://www.w3.org/1999/xhtml" xmlns:err="http://www.w3.org/ns/xproc-error" xmlns:s="http://purl.oclc.org/dsdl/schematron" queryBinding="xslt2">
<s:pattern>
<s:rule context="/">
<s:assert test="doc">The pipeline root is not doc.</s:assert>
<s:assert test="doc=5">The root element does not have the correct value</s:assert>
</s:rule>
</s:pattern>
</s:schema>
Added attribute 'queryBinding' to schematron's schema.
Initial commit.