W3C home > Mailing lists > Public > public-xml-processing-model-comments@w3.org > February 2008

[closed] Re: p:set-attributes - attributes with the "xmlns" prefix

From: Norman Walsh <ndw@nwalsh.com>
Date: Fri, 08 Feb 2008 12:11:50 -0500
To: public-xml-processing-model-comments@w3.org
Message-ID: <m2bq6rl6eh.fsf@nwalsh.com>
/ Toman_Vojtech@emc.com was heard to say:
| The specification of the p:set-attributes step (7.1.20) says:
|
| "Each attribute on the document element of the document that appears on
| the attributes port is copied to each element that matches the match
| expression."
|
| Does this apply also to namespace declarations (xmlns:* attributes)? If
| so, possible collisions in namespace declarations would need to be
| resolved.
|
| The same problem can be encountered also in p:add-attribute and p:rename
| (is it possible to rename an attribute so that its new name contains the
| xmlns prefix?)

No. Namespace declarations are not attributes. Yes, they look like
attributes and yes, they're mixed with attributes in some APIs, but
they are not, in infoset terms, "attributes".

                                        Be seeing you,
                                          norm

-- 
Norman Walsh <ndw@nwalsh.com> | Everything should be made as simple as
http://nwalsh.com/            | possible, but no simpler.

Received on Friday, 8 February 2008 17:12:05 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Friday, 8 February 2008 17:12:05 GMT