W3C home > Mailing lists > Public > xmlschema-dev@w3.org > June 2004

RE: keyref with empty sets

From: Xan Gregg <Xan.Gregg@jmp.com>
Date: Thu, 3 Jun 2004 13:14:12 -0400
Message-ID: <1F145982392D6143BCF3CC670E4C7FA02710AC@MERC27.na.sas.com>
To: "Henry S. Thompson" <ht@inf.ed.ac.uk>
Cc: <xmlschema-dev@w3.org>

> So, no keyref selections, no key selections, no problem. 

Hmmm.  Then identity constraints could be used to enforce the
HTML requirement that <A> elements not be nested.  Just define
a key constraint for <A> with select=".//A" and 
field="@SomeInvalidAttributeName".  If there's no nested <A>, 
then there's no error.  If there is a nested <A>, there's
an error whether it does or doesn't have the invalid attribute.

Just an idea.

xan
Received on Thursday, 3 June 2004 13:14:29 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Tuesday, 11 January 2011 00:14:44 GMT