<?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>2011</bug_id>
          
          <creation_ts>2005-09-07 20:07:15 +0000</creation_ts>
          <short_desc>R-033: Request for clarification of identity constraint rules</short_desc>
          <delta_ts>2009-04-21 19:24:50 +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>Structures: XSD Part 1</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="Henry S. Thompson">ht</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>5812</commentid>
    <comment_count>0</comment_count>
    <who name="Sandy Gao">sandygao</who>
    <bug_when>2005-09-07 20:07:15 +0000</bug_when>
    <thetext>Bullet 4.3 of section &quot;Validation Rule: Identity-constraint Satisfied&quot; states:

&quot;If the {identity-constraint category} is keyref, then for each member of the 
qualified node set (call this the keyref member), there must be a node table 
associated with the {referenced key} in the [identity-constraint table] of the 
element information item (see Identity-constraint Table, which must be 
understood as logically prior to this clause of this constraint, below) and 
there must be an entry in that table whose key-sequence is equal to the keyref 
member&apos;s key-sequence member for member, as defined by Equal in [XML Schemas: 
Datatypes].&quot;

Does this mean that the identity constraint referenced by the keyref must apply 
to the element the keyref is on or to one of its descendants, or may the 
identity constraint referenced by the keyref appear anywhere at all in the 
instance document?

If the former, the Primer contains an invalid example. Either way, this rule 
should be clarified.

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

Henry&apos;s response:
http://lists.w3.org/Archives/Public/www-xml-schema-comments/2001AprJun/0279.html</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>5813</commentid>
    <comment_count>1</comment_count>
    <who name="Sandy Gao">sandygao</who>
    <bug_when>2005-09-07 20:07:44 +0000</bug_when>
    <thetext>The WG decided that the Structures spec needs a clarification of this 
constraint, and that the Primer has an example that is invalid. The 
commentator&apos;s interpretation is correct, namely, that the key or unique 
identity constraint to which a keyref refers must be within the scope of the 
element the keyref is on.

Erratum E0-22 added for Primer.

Structures erratum
http://lists.w3.org/Archives/Member/w3c-xml-schema-ig/2002Oct/0313.html
reviewed and approved at the Nov. 1 telecon.

Structures erratum E1-19 added</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>