![]() |
![]() | ![]() | ![]() | Altova Mailing List Archives>Archive Index >xmlschema-dev Archive Home >Recent entries >Thread Prev - Any element with specific attributes and children [Thread Next] RE: Any element with specific attributes and childrenTo: "'Solmaz, Metin'" <Metin.Solmaz@-------.--->, <xmlschema-dev@--.---> Date: 10/12/2005 10:00:00 AM I am unable to specify that the <any> element must contain certain specific attributes (attr1 and attr2) and certain children (Specific). Is this possible at all in XML Schema? No, "any" means what it says. The only thing you can constrain is the namespace. You could use an abstract element in this position that requires the specific attributes and children; the position could then contain any element that's defined to be in the substitution group of this abstract element. This allows a finite set of element names, there is no way of permitting any element name. Michael Kay http://www.saxonica.com/ | ![]() | ![]() | ![]() |
| Company | Legal | Press | Partners | Careers | Sitemap | Contact Us | Altova Blog | |||||
|
