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:p="" version="3.0">
            <p:output port="result"/>
            <p:variable name="var" select="5">
                <doc xmlns=""/>
                <doc xmlns=""/>

                    <doc xmlns="">{$var}</doc>
MorganaXProc passing XML Calabash failing

Schematron validation

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

16 Oct 2018, Norman Walsh

Initial commit.