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 02:38:39 +0000
To: www-xml-schema-comments@w3.org
Message-Id: <E1GiMHv-0006Eq-1h@wiggum.w3.org>


           Summary: Elements with duplicate IDs
           Product: XML Schema
           Version: 1.1 only
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: normal
          Priority: P2
         Component: Structures: XSD Part 1
        AssignedTo: cmsmcq@w3.org
        ReportedBy: sandygao@ca.ibm.com
         QAContact: www-xml-schema-comments@w3.org

Consider an element declaration
<element name="e">
      <element name="id1" type="ID"/>
      <element name="id2" type="ID"/>

And the instance

Many people would think the above is invalid, because there are duplicate ID
values. But a careful reading of the "ID/IDREF Table" PSVI property suggests
that the above is valid. There will only be one entry in the [binding], the
element "e".

Is this intended? Is this how most schema processors implemented ID/IDREF?
Either way, some clarification will be helpful.
Received on Friday, 10 November 2006 02:38:53 UTC

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