<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://www.w3.org/Bugs/Public/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.4"
          urlbase="https://www.w3.org/Bugs/Public/"
          
          maintainer="sysbot+bugzilla@w3.org"
>

    <bug>
          <bug_id>2071</bug_id>
          
          <creation_ts>2005-09-09 03:01:48 +0000</creation_ts>
          <short_desc>R-081: Error in Primer example of identity constraints</short_desc>
          <delta_ts>2009-04-21 19:24:57 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>XML Schema</product>
          <component>Primer: XSD Part 0</component>
          <version>1.0 only</version>
          <rep_platform>All</rep_platform>
          <op_sys>All</op_sys>
          <bug_status>CLOSED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P2</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Sandy Gao">sandygao</reporter>
          <assigned_to name="David Ezell">David_E3</assigned_to>
          
          
          <qa_contact name="XML Schema comments list">www-xml-schema-comments</qa_contact>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>5954</commentid>
    <comment_count>0</comment_count>
    <who name="Sandy Gao">sandygao</who>
    <bug_when>2005-09-09 03:01:49 +0000</bug_when>
    <thetext>There is an error in the example of section 5.1 of the Primer (entitled &quot;A 
Unique Composed Value&quot;):

&lt;unique name=&quot;dummy1&quot;&gt;
  &lt;selector xpath=&quot;r:regions/r:zip&quot;/&gt;
  &lt;field    xpath=&quot;@code&quot;/&gt;
  &lt;field    xpath=&quot;r:part/@number&quot;/&gt;
 &lt;/unique&gt;
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</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>5955</commentid>
    <comment_count>1</comment_count>
    <who name="Sandy Gao">sandygao</who>
    <bug_when>2005-09-09 03:02:04 +0000</bug_when>
    <thetext>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.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>