Re: keyref with empty sets

"Xan Gregg" <Xan.Gregg@jmp.com> writes:

>> 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.

Nifty one!

ht
-- 
 Henry S. Thompson, HCRC Language Technology Group, University of Edinburgh
                     Half-time member of W3C Team
    2 Buccleuch Place, Edinburgh EH8 9LW, SCOTLAND -- (44) 131 650-4440
            Fax: (44) 131 650-4587, e-mail: ht@inf.ed.ac.uk
                   URL: http://www.ltg.ed.ac.uk/~ht/
[mail really from me _always_ has this .sig -- mail without it is forged spam]

Received on Friday, 4 June 2004 05:15:26 UTC