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
To: www-xml-schema-comments@w3.org
Message-Id: <E1GiSjU-0007sD-0A@wiggum.w3.org>


------- 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.

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


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 UTC

This archive was generated by hypermail 2.3.1 : Wednesday, 7 January 2015 14:50:05 UTC