p:set-attributes-001 (NW)

Tests that an error to be raised if attribute-name 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:set-attributes match="/doc"
                     attributes="map { 'xmlns': '5' }">
      <p:with-input>
         <doc attribute="3">
                  Some text
                  </doc>
      </p:with-input>
   </p:set-attributes>
</p:declare-step>

Revision history

04 May 2024, Norm Tovey-Walsh
Tests for p:set-attributes; adapted from ab-add-attribute-025.