- From: <bugzilla@wiggum.w3.org>
- Date: Fri, 10 Nov 2006 02:38:39 +0000
- To: www-xml-schema-comments@w3.org
- CC:
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 UTC