p:rename-014 (AB)

Tests p:rename: XC0023 to be raised if two attributes are matched on the same element.

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

The pipeline


<p:declare-step xmlns:err="http://www.w3.org/ns/xproc-error" xmlns:p="http://www.w3.org/ns/xproc" version="3.0">
   <p:output port="result"/>
   <p:rename match="@a | @b" new-name="x">
      <p:with-input>
         <doc a="4" b="5"/>
      </p:with-input>
   </p:rename>
</p:declare-step>
MorganaXProc passing XML Calabash passing

Revision history

03 May 2024, Achim Berndzen

Initial commit