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

Re: add-attribute adding namespace declarations.

From: Henry S. Thompson <ht@inf.ed.ac.uk>
Date: Wed, 17 Dec 2008 17:27:41 +0000
To: "David A. Lee" <dlee@calldei.com>
Cc: <Toman_Vojtech@emc.com>, <public-xml-processing-model-comments@w3.org>
Message-ID: <f5b1vw6k8z6.fsf@hildegard.inf.ed.ac.uk>

Hash: SHA1

David A. Lee writes:

> Cross-posting to the xml-processing group.
> I belive this requires a clarification in the spec.
> add-attribute absolutely *can* add namespace declarations, but the
> spec explicitly says it cannot.
> It just cant add namespace declarations without adding an additional
> (non xmlns) attribute.

The spec. is already perfectly clear in stating that the value of the
attribute name option cannot be 'xmlns:...'.  At most a Note could be
added along the lines of:

  Note: Adding an attribute whose name is in a namespace with no
  namespace declaration in scope in the target document may result in
  a namespace binding being added by [ref: namespace fixup].

- -- 
       Henry S. Thompson, School of Informatics, University of Edinburgh
                         Half-time member of W3C Team
      10 Crichton Street, Edinburgh EH8 9AB, SCOTLAND -- (44) 131 650-4440
                Fax: (44) 131 651-1426, e-mail: ht@inf.ed.ac.uk
                       URL: http://www.ltg.ed.ac.uk/~ht/
[mail really from me _always_ has this .sig -- mail without it is forged spam]
Version: GnuPG v1.2.6 (GNU/Linux)

Received on Wednesday, 17 December 2008 17:28:25 UTC

This archive was generated by hypermail 2.3.1 : Tuesday, 6 January 2015 20:28:26 UTC