Altova Mailing List Archives>Archive Index >xml-dev Archive Home >Recent entries >Thread Prev - RE: [xml-dev] Schema definition of element with optional children [Thread Next] RE: [xml-dev] Schema definition of element with optional childrenTo: <joe@--------.--.-->,<xml-dev@-----.---.---> Date: 5/2/2006 2:09:00 PM > > So I can have a choice of two complexTypes, adressFullType > and addressDeletedType? You could define one type that has a choice of two content models. But you can't say that the choice of the content model depends on a particular attribute; and attributes aren't part of the content model, so you can't constrain which child elements can appear with which attributes. Michael Kay http://www.saxonica.com/ | ||||||
| Company | Legal | Press | Partners | Careers | Sitemap | Contact Us | Altova Blog | Mobile | Full Site | |||
|
