W3C home > Mailing lists > Public > www-xml-schema-comments@w3.org > July to September 2005

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

From: <bugzilla@wiggum.w3.org>
Date: Fri, 09 Sep 2005 03:01:49 +0000
To: www-xml-schema-comments@w3.org
Message-Id: <E1EDZ9B-0004Dc-6y@wiggum.w3.org>


           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"/>
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 

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

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