![]() |
![]() | ![]() | ![]() | Altova Mailing List Archives>Archive Index >xmlschema-dev Archive Home >Recent entries >Thread Prev - Re: optional, but at least one required >Thread Next - Re: optional, but at least one required Re: optional, but at least one requiredTo: George Cristian Bina <george@---------.---> Date: 1/10/2006 7:08:00 PM George, thanks for the tip, I'm assuming that the (a|b|c)+ is the example that you gave me. It seemed to do the trick. I will also try Vegard's idea to see if that solves the problem. Thanks. On 1/6/06, George Cristian Bina <george@o...> wrote: > Hi Brian, > > Then a model like (a|b|c)+ looks like exactly what want. > > Best Regards, > George > --------------------------------------------------------------------- > George Cristian Bina > <oXygen/> XML Editor, Schema Editor and XSLT Editor/Debugger > www.---.com > > > Brian Bonner wrote: > > George, Michael, thanks. > > > > I'm sorry I wasn't complete. Yes, multiple occurrences of a, b and c > > are allowed. That's a critical piece I left out. > > > > > > So, someone could create: > > > > <options> > > <a/> > > </options> > > > > <options> > > <a/> > > <b/> > > </options> > > > > <options> > > <b/> > > </options> > > > > <options> > > <a/> > > <b/> > > <c/> > > </options> > > > > and several others, > > > > but not: > > > > <options/> > > > > So each of them are optional, but *at least* one of them must be > > specified and multiple can be specified at once. > > > > I think George's model which imposes ordering on the elements might do > > the trick. I'll give that a shot. > > > > Thank you. > > > > Brian > From mike@s... Wed Jan 11 09:22:26 2006 Received: from lisa.w3.org ([128.30.52.41]) by frink. | ![]() | ![]() | ![]() |
| Company | Legal | Press | Partners | Careers | Sitemap | Contact Us | Altova Blog | |||||
|
