With-option 007a

Tests variable reference with wrong type in p:with-option

Test ab-with-option-007a.xml is expected to fail with error code err:XD0036.

The pipeline

      <p:declare-step xmlns:p="http://www.w3.org/ns/xproc" name="main" version="3.0">
            <p:output port="result"/>
            <p:variable name="att-value" select="5"/>
            <p:add-attribute attribute-name="att">
                <p:with-option name="attribute-value" select="$att-value"/>
               <doc xmlns=""/>
MorganaXProc passing

Revision history

29 Mar 2021, Achim Berndzen

Tests that type cheking of XPath expression is done correctly