[Bug 15722] Why are key, keyref, and unique legal only on elements?

https://www.w3.org/Bugs/Public/show_bug.cgi?id=15722

Michael Kay <mike@saxonica.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |mike@saxonica.com

--- Comment #1 from Michael Kay <mike@saxonica.com> 2012-01-31 17:41:19 UTC ---
An identity constraint defines a constraint on a subtree, namely that two Xs
within the subtree can't have the same value for f(X). The declaration of the
constraint is associated with the root of the subtree that it constrains. I
can't therefore see how it would make much sense to specify the constraint for
an attribute, whose subtree is trivial. 

I've always thought defining the constraint on the type rather than on the
element would make sense, but there's no real benefit in making the change at
this stage of the game.

-- 
Configure bugmail: https://www.w3.org/Bugs/Public/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.

Received on Tuesday, 31 January 2012 17:41:23 UTC