Variable declaration 021b

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.

The pipeline

<p:declare-step xmlns:err="" xmlns:p="" version="3.0">
   <p:output port="result"/>
   <p:variable name="var" select="5">
MorganaXProc passing XML Calabash passing

Schematron validation

<s:schema xmlns="" xmlns:err="" xmlns:s="" queryBinding="xslt2">
      <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>

Revision history

10 Jun 2021, Achim Berndzen

Added attribute 'queryBinding' to schematron's schema.

16 Oct 2018, Norman Walsh

Initial commit.