This is an archived snapshot of W3C's public bugzilla bug tracker, decommissioned in April 2019. Please see the home page for more details.
The following constraint from the Schema for Schemas assumes that all key, unique and keyref elements have names. <xs:key name="identityConstraint"> <xs:selector xpath=".//xs:key|.//xs:unique|.//xs:keyref"/> <xs:field xpath="@name"/> </xs:key> This is no longer a valid assumption, since they can now have the "ref" attribute instead. I think it should be changed from key to unique, as in: <xs:unique name="identityConstraint"> <xs:selector xpath=".//xs:key|.//xs:unique|.//xs:keyref"/> <xs:field xpath="@name"/> </xs:unique>
From the WG call 2012-04-20: SG: I'm worried that we should put something to constrain this in the rec. MSM: the closest I see to this constraint is 3.11.1. SG: 3.17.6.1 is the place where we spell it all out.