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="http://www.w3.org/ns/xproc" 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}"/>
            </p:variable>
            
            <p:identity>
                <p:with-input>
                    <doc2 xmlns="">{$var2}</doc2>
                </p:with-input>
            </p:identity>
        </p:declare-step>
    
MorganaXProc passing XML Calabash failing

Schematron validation


        <s:schema xmlns:s="http://purl.oclc.org/dsdl/schematron">
            <s:pattern>
                <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>
                </s:rule>
            </s:pattern>
        </s:schema>        
    

Revision history

13 Oct 2018, Achim Berndzen

Initial test