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

http://www.w3.org/Bugs/Public/show_bug.cgi?id=2011

           Summary: R-033: Request for clarification of identity constraint
                    rules
           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: 
Datatypes]."

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's response:
http://lists.w3.org/Archives/Public/www-xml-schema-comments/2001AprJun/0279.html

Received on Wednesday, 7 September 2005 20:07:18 UTC