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
Cc:
Message-Id: <E1EDZ9B-0004Dc-6y@wiggum.w3.org>

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 GMT

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