Static variables/option 051

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

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

The pipeline

        <p:declare-step xmlns:p="" name="main" version="3.0">
            <p:output port="result"/>
            <p:option static="true" name="option" select="'../documents/ab-doc2.xml'"/>
            <p:variable static="true" name="var2" select="/doc/@att">
                <p:document href="{$option}"/>
                    <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