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

[Bug 2011] R-033: Request for clarification of identity constraint rules

From: <bugzilla@wiggum.w3.org>
Date: Wed, 07 Sep 2005 20:07:15 +0000
To: www-xml-schema-comments@w3.org
Message-Id: <E1ED6CR-0004MN-5P@wiggum.w3.org>


           Summary: R-033: Request for clarification of identity constraint
           Product: XML Schema
           Version: 1.0
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: normal
          Priority: P2
         Component: XSD Part 1: Structures
        AssignedTo: ht@w3.org
        ReportedBy: sandygao@ca.ibm.com
         QAContact: www-xml-schema-comments@w3.org

Bullet 4.3 of section "Validation Rule: Identity-constraint Satisfied" states:

"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's key-sequence member for member, as defined by Equal in [XML Schemas: 

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.


Henry's response:
Received on Wednesday, 7 September 2005 20:07:18 UTC

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