Add-attribute-022 (AB)

Tests an error to be raised if match on p:add-attribute matches text.

Test ab-add-attribute-022.xml is expected to fail with error code err:XC0023 [Core steps, XProc].

The pipeline


      <p:declare-step xmlns:p="http://www.w3.org/ns/xproc" version="3.0">
         <p:output port="result"/>
         
         
         <p:add-attribute match="/doc/text()" attribute-value="5" attribute-name="att">
            <p:with-input>
               <doc xmlns="" attribute="3">
                  Some text
                  
                  
               </doc>
            </p:with-input>
         </p:add-attribute>
      </p:declare-step>
   
MorganaXProc passing

Revision history

16 Feb 2019, Achim Berndzen

Added new tests for p:add-attribute.