W3C home > Mailing lists > Public > xproc-dev@w3.org > December 2008

add-attribute adding namespace declarations.

From: David A. Lee <dlee@calldei.com>
Date: Wed, 17 Dec 2008 10:32:29 -0500
Message-ID: <A74DB08B810E40029553E0F1B6697584@calldei.com>
To: "XProc Dev" <xproc-dev@w3.org>

I'm a little confused about add-attribute.

7.1.1 p:add-attribute

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

But in the required test

The input document is:


<title>Some Title</title>

<para>Some paragraph.</para>


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


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

<para>Some paragraph.</para>



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 A. Lee
Received on Wednesday, 17 December 2008 15:33:15 UTC

This archive was generated by hypermail 2.3.1 : Tuesday, 6 January 2015 21:03:04 UTC