This is an archived snapshot of W3C's public bugzilla bug tracker, decommissioned in April 2019. Please see the home page for more details.

Bug 2071 - R-081: Error in Primer example of identity constraints
Summary: R-081: Error in Primer example of identity constraints
Status: CLOSED FIXED
Alias: None
Product: XML Schema
Classification: Unclassified
Component: Primer: XSD Part 0 (show other bugs)
Version: 1.0 only
Hardware: All All
: P2 normal
Target Milestone: ---
Assignee: David Ezell
QA Contact: XML Schema comments list
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-09-09 03:01 UTC by Sandy Gao
Modified: 2009-04-21 19:24 UTC (History)
0 users

See Also:


Attachments

Description Sandy Gao 2005-09-09 03:01:49 UTC
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
Comment 1 Sandy Gao 2005-09-09 03:02:04 UTC
The WG agreed that the commentator was correct.

Priscilla proposed the following erratum to the WG: 
http://lists.w3.org/Archives/Member/w3c-xml-schema-wg/2002Jan/0050.html 

New proposed erratum available at:
http://lists.w3.org/Archives/Member/w3c-xml-schema-ig/2002Aug/0010.html 

Text approved at Sept. 13 concall.

Erratum E0-26 added.