[XML-DEV Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] Re: Restrictions on existence of attributes?
On Jun 27, 2006, at 15:51, Chiusano Joseph wrote: > Perhaps a reference to an attribute group, with a minOccurs and > maxOccurs of 1? Nope, you can't have those on an attribute group, and if you could I guess you'd be setting the occurrences of the group, not of its individual members. I'm fairly certain that it can't be done in XML Schema, at least not without a kludge like defining a type per attribute occurrence and casting the element with xsi:type — yummy! I left the dark magic door open because I never remember what a ·non-absent· {unfinal} [attributes] mixed element-only {content [item]} post-schema- validation-infoset-contribution used as a distinguished property value denoting absence can really do, but I don't think it can be done. Something about hitting the 20/80 sweet spot I think :) -- Robin Berjon Senior Research Scientist Expway, http://expway.com/
|
PURCHASE STYLUS STUDIO ONLINE TODAY!Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|