Altova Mailing List Archives>Archive Index >comp.text.xml Archive Home >Recent entries >Thread Prev - Can XML Schema represent this? >Thread Next - Re: Can XML Schema represent this? Re: Can XML Schema represent this?To: NULL Date: 6/2/2004 2:47:00 PM In article <2998ab03.0406020523.5c64ffe4@p...>, Steven Burr <sburr@a...> wrote: >I would like to restrict the values of an attribute to boolean >expressions combining enumerated values. Is this possible? You would have to use a regular expression. Something like "(apples|oranges|bananas|pears) (OR|AND) (apples|oranges|bananas|pears)" > <xs:restriction base="myAttributeValues"> > > <!-- WHAT GOES HERE TO ALLOW BOOLEAN EXPRESSIONS > OF THE ENUMERATED TYPE VALUES? --> > > </xs:restriction> This is not going to work, since it's not a restriction of the base type. If a type R is a restriction of a type B, then all legal R values are legal B values. But "apples OR oranges" is not a legal value for myAttributeValues. -- Richard | ||||||
| Company | Legal | Press | Partners | Careers | Sitemap | Contact Us | Altova Blog | Mobile | Full Site | |||
|
