Add-attribute-025 (AB)

Tests an error to be raised if attribute-name on p:add-attribute is 'xmlns'.

Test is expected to fail with error code err:XC0059.

The pipeline

<p:declare-step xmlns:err="http://www.w3.org/ns/xproc-error"
                xmlns:p="http://www.w3.org/ns/xproc"
                xmlns:t="http://xproc.org/ns/testsuite/3.0" version="3.0">
   <p:output port="result"/>
   <p:add-attribute match="/doc" attribute-value="5"
                    attribute-name="xmlns">
      <p:with-input>
         <doc attribute="3">
                  Some text
                  </doc>
      </p:with-input>
   </p:add-attribute>
</p:declare-step>

Revision history

16 Feb 2019, Achim Berndzen
Added new tests for p:add-attribute.