W3C home > Mailing lists > Public > public-xml-id@w3.org > February 2005

Re: Multiple ID attributes on a single element

From: Daniel Veillard <veillard@redhat.com>
Date: Mon, 7 Feb 2005 06:59:17 -0500
To: Anne van Kesteren <fora@annevankesteren.nl>
Cc: public-xml-id@w3.org
Message-ID: <20050207115916.GN16253@redhat.com>

On Mon, Feb 07, 2005 at 12:41:32PM +0100, Anne van Kesteren wrote:
> >>Although I am too late for last call comments I was wondering if
> >>the WG could clarify which ID attribute should get presedence when
> >>multiple are applied to a single element.
> >
> >Could you explain what you mean by "presedence" there ?
> # <p xmlns="http://www.w3.org/1999/xhtml" id="foo" xml:id="bar"/>
> Which ID attribute is considered to be the ID attribute of the element? 
> (What is the value of the ID attribute of this element when I request 
> it.) Or can a well-formed XML document have multiple ID attributes per 
> element albeit invalid XML?

  the later. An invalid but well-formed XML document can have multiple
attribute of type ID per element. #bar and #foo will both point to it,
non validity generated a loss of unicity, that's all.


Daniel Veillard      | Red Hat Desktop team http://redhat.com/
veillard@redhat.com  | libxml GNOME XML XSLT toolkit  http://xmlsoft.org/
http://veillard.com/ | Rpmfind RPM search engine http://rpmfind.net/
Received on Monday, 7 February 2005 11:59:20 UTC

This archive was generated by hypermail 2.3.1 : Tuesday, 6 January 2015 19:53:49 UTC