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

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

           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">
  <complexType>
    <sequence>
      <element name="id1" type="ID"/>
      <element name="id2" type="ID"/>
    </sequence>
  </complexType>
</element>

And the instance
<e><id1>abc</id1><id2>abc</id2></e>

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 GMT

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