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.

Received on Thursday, 3 June 2004 13:14:29 UTC

This archive was generated by hypermail 2.3.1 : Wednesday, 7 January 2015 14:56:05 UTC