[Bug 2071] R-081: Error in Primer example of identity constraints

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

           Summary: R-081: Error in Primer example of identity constraints
           Product: XML Schema
           Version: 1.0
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: normal
          Priority: P2
         Component: XSD Part 0: Primer
        AssignedTo: David_E3@VERIFONE.com
        ReportedBy: sandygao@ca.ibm.com
         QAContact: www-xml-schema-comments@w3.org


There is an error in the example of section 5.1 of the Primer (entitled "A 
Unique Composed Value"):

<unique name="dummy1">
  <selector xpath="r:regions/r:zip"/>
  <field    xpath="@code"/>
  <field    xpath="r:part/@number"/>
 </unique>
The rules of identity constraints say that the field xpath should only return 
one node for each node selected by the selector [1]. In this case, an r:zip can 
contain many r:parts, each with their own number attribute. This violates the 
rule. 

See:
http://lists.w3.org/Archives/Public/www-xml-schema-comments/2001OctDec/0055.html

Received on Friday, 9 September 2005 03:02:32 UTC