add-attribute adding namespace declarations.

I'm a little confused about add-attribute.

In
7.1.1 p:add-attribute

it says ...
"This step cannot be used to add namespace declarations."

But in the required test
    add-attribute-002.xml

The input document is:

<document>

<title>Some Title</title>

<para>Some paragraph.</para>

</document>



and the output after 2 add-attributes is supposed to be '

<document>

<title xmlns:test2="http://test.com" test2:foo="bar">Some Title</title>

<para>Some paragraph.</para>

</document>

---

Which clearly has had a namespace declaration added to the xml.

That seems useful, but in clear contridiction to the spec.

So which is correct ?



-David

-----------------------------------------------------------
David A. Lee
dlee@calldei.com  
http://www.calldei.com

Received on Wednesday, 17 December 2008 15:33:15 UTC