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:err="http://www.w3.org/ns/xproc-error" 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"/>
      <p:with-input>
         <doc/>
      </p:with-input>
   </p:add-attribute>
</p:declare-step>
MorganaXProc passing XML Calabash passing

Revision history

29 Mar 2021, Achim Berndzen

Tests that type cheking of XPath expression is done correctly