Altova Mailing List Archives>Archive Index >xmlschema-dev Archive Home >Recent entries >Thread Prev - RE: keyref with empty sets [Thread Next] Re: keyref with empty setsTo: "Xan Gregg" <Xan.Gregg@---.---> Date: 6/4/2004 11:15:00 AM
"Xan Gregg" <Xan.Gregg@j...> 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@i...
URL: http://www.ltg.ed.ac.uk/~ht/
[mail really from me _always_ has this .sig -- mail without it is forged spam]
From nobody@w... Fri Jun 4 05:32:03 2004
Return-P | ||||||
| Company | Legal | Press | Partners | Careers | Sitemap | Contact Us | Altova Blog | Mobile | Full Site | |||
|
