Static variables/option 052

Tests that a static variable can be used in document binding of a static variable.

Test ab-static-option-var-052.xml is expected to pass.

The pipeline

        <p:declare-step xmlns:p="" name="main" version="3.0">
            <p:output port="result"/>
            <p:variable static="true" name="variable" select="'../documents/ab-doc2.xml'"/>
            <p:variable static="true" name="var2" select="/doc/@att">
                <p:document href="{$variable}"/>
                    <doc2 xmlns="">{$var2}</doc2>
MorganaXProc passing XML Calabash failing

Schematron validation

        <s:schema xmlns:s="">
                <s:rule context="/">
                    <s:assert test="doc2">The pipeline root is not doc2.</s:assert>
                    <s:assert test="doc2/@att='1'">The root element does not have a text child 'true'.</s:assert>

Revision history

13 Oct 2018, Achim Berndzen

Initial test