<?xml-stylesheet type="text/xsl" href="/style/testcase.xsl"?>
<t:test xmlns:t="http://xproc.org/ns/testsuite"
        xmlns:p="http://www.w3.org/ns/xproc"
        xmlns:c="http://www.w3.org/ns/xproc-step"
        xmlns:err="http://www.w3.org/ns/xproc-error"
        error="err:XC0059">

  <t:title>Test err:XC0059 #002</t:title>
  <t:description>
    <p xmlns='http://www.w3.org/1999/xhtml'>It is a dynamic error if
    the QName value in the attribute-name option uses the prefix
    'xmlns' or any other prefix that resolves to the same namespace
    name as 'xmlns'.</p>
  </t:description>

  <t:input port="source">
    <document>
      <title>Some Title</title>
      <para>Some paragraph.</para>
    </document>
  </t:input>
  
  <t:pipeline>
    <p:pipeline version='1.0' name="pipeline">

      <p:add-attribute match="title" attribute-value="bar" xmlns:test="http://www.acme.com/test">
        <p:with-option name="attribute-name" select="'xmlns'"/>
      </p:add-attribute>

    </p:pipeline>
  </t:pipeline>

</t:test>

