<?xml version="1.0" encoding="utf-8"?>
<t:test xmlns:t="http://xproc.org/ns/testsuite/3.0"
        xml:base="/nw-set-attributes-002.xml"
        name="nw-set-attributes-002.xml"
        expected="fail"
        code="err:XC0059">
   <t:info xmlns:err="http://www.w3.org/ns/xproc-error">
      <t:title>p:set-attributes-002 (NW)</t:title>
      <t:revision-history>
         <t:revision>
            <t:date>2024-05-04</t:date>
            <t:author>
               <t:name>Achim Berndzen</t:name>
            </t:author>
            <t:description xmlns="http://www.w3.org/1999/xhtml">
               <p>Changed Q{...} notation to call of function 'QName()'</p>
            </t:description>
         </t:revision>
         <t:revision>
            <t:date>2024-05-04</t:date>
            <t:author>
               <t:name>Norm Tovey-Walsh</t:name>
            </t:author>
            <t:description xmlns="http://www.w3.org/1999/xhtml">
               <p>Tests for p:set-attributes; adapted from ab-add-attribute-026.</p>
            </t:description>
         </t:revision>
      </t:revision-history>
   </t:info>
   <t:description xmlns="http://www.w3.org/1999/xhtml"
                  xmlns:err="http://www.w3.org/ns/xproc-error">
      <p>Tests that an error to be raised if attribute-name is 'xmlns'.</p>
   </t:description>
   <t:pipeline xmlns:err="http://www.w3.org/ns/xproc-error">
      <p:declare-step xmlns:p="http://www.w3.org/ns/xproc" version="3.0">
         <p:output port="result"/>
         <p:set-attributes match="/doc"
                           attributes="map { QName('http://www.w3.org/2000/xmlns/','x'): '5' }">
            <p:with-input>
               <doc attribute="3">
                  Some text
                  <!-- a comment --><?pi?></doc>
            </p:with-input>
         </p:set-attributes>
      </p:declare-step>
   </t:pipeline>
</t:test>
