Static variables/option 048

Tests that a static variable is not visible in a parent step.

Test ab-static-option-var-048.xml is expected to fail with error code err:XD0050.

The pipeline


        <p:declare-step xmlns:p="http://www.w3.org/ns/xproc" name="main" version="3.0">
            <p:output port="result"/>
            
            <p:declare-step type="dummy:test1">
                <p:output port="result"/>
                <p:variable static="true" name="static-variable" select="15"/>
                
                <p:identity name="test1-one">
                    <p:with-input><doc xmlns="">{$static-variable}</doc></p:with-input>
                </p:identity>
            </p:declare-step>
            
            
            <dummy:test1 xmlns:dummy="http://dummy" name="one"/>
            <p:identity name="two">
                <p:with-input><doc xmlns="">{$static-variable}</doc></p:with-input>
            </p:identity>
            
            <p:wrap-sequence wrapper="result">
                <p:with-input pipe="@one @two"/>
            </p:wrap-sequence>
            
        </p:declare-step>
    
MorganaXProc passing XML Calabash failing

Revision history

13 Oct 2018, Achim Berndzen

Initial test