W3C home > Mailing lists > Public > www-xml-schema-comments@w3.org > October to December 2006

[Bug 3968] Elements with duplicate IDs

From: <bugzilla@wiggum.w3.org>
Date: Fri, 10 Nov 2006 09:31:32 +0000
CC:
To: www-xml-schema-comments@w3.org
Message-Id: <E1GiSjU-0007sD-0A@wiggum.w3.org>

http://www.w3.org/Bugs/Public/show_bug.cgi?id=3968





------- Comment #1 from ht@inf.ed.ac.uk  2006-11-10 09:31 -------
No harm, no foul.  The guarantee ID provides is that no ID is attached to two
distinct items.  In SGML and XML, there was also a declaration constraint which
prevented items from having two IDs, but we explicitly did _not_ reconstruct
this constraint except for attributes, although both parts 1 and 2 both suggest
not using ID for the type of elements.

The example schema given makes it possible for an element to have multiple IDs,
but then the instance doesn't exploit this.  In my view the resulting ID/IDREF
table is correct -- one entry, with one binding, i.e. 'abc' bound to the doc.
element.

And I think the spec. correctly specifies that in case of an instance such as

 <e><id1>abc</id1><id2>xyz</id2></e>

there will be _two_ entries in the ID/IDREF table, one binding 'abc' to the
doc. elt and one binding 'xyz' to it.  Your gun, your foot, your bullet.

In other words, no bug, no change required.
Received on Friday, 10 November 2006 09:31:42 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Sunday, 6 December 2009 18:13:11 GMT