W3C home > Mailing lists > Public > www-xml-schema-comments@w3.org > April to June 2009

[Bug 5023] Relationship between identity constraints and assertions

From: <bugzilla@wiggum.w3.org>
Date: Wed, 15 Apr 2009 15:00:27 +0000
To: www-xml-schema-comments@w3.org
Message-Id: <E1Lu6bD-000433-Tu@wiggum.w3.org>
http://www.w3.org/Bugs/Public/show_bug.cgi?id=5023


Noah Mendelsohn <noah_mendelsohn@us.ibm.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |noah_mendelsohn@us.ibm.com




--- Comment #10 from Noah Mendelsohn <noah_mendelsohn@us.ibm.com>  2009-04-15 15:00:27 ---
Michael Kay writes:

> using a specialized mechanism such as identity
> constraints rather than a general mechanism like
> assertions may result in a more focused and
> intelligible error message when the condition is
> violated.


Yes, indeed.  Perhaps the TAG finding Rule of Least Power
(http://www.w3.org/2001/tag/doc/leastPower.html) is pertinent to consideration
of these tradeoffs.  

> it's a lot easier for an implementation to enforce
> identity constraints and CTA while processing the
> document in a streaming manner than it is to
> enforce assertions

Sigh.  I can't help remembering all the debates about whether insisting on a
suitable subset of XPath would have made this less of a concern.  Too late to
reopen that, but I do find it disappointing to find out that after all, you as
a skilled implementer wind up warning users away from assertions exactly
because of this foreseeable concern.  That doesn't make the tradeoff we chose
wrong, but I remain somewhat uncomfortable with it.

Noah


-- 
Configure bugmail: http://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 Wednesday, 15 April 2009 15:00:44 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Sunday, 6 December 2009 18:13:17 GMT