[XMLSCHEMA-DEV Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

Re: optional, but at least one required

From: Brian Bonner <bkbonner@gmail.com>
Date: Wed, 11 Jan 2006 00:07:41 -0500
Message-ID: <e0904ff40601102107i238875ejdb95425297c30eee@mail.gmail.com>
To: George Cristian Bina <george@oxygenxml.com>
Cc: xmlschema-dev@w3.org
xml at least one required

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@oxygenxml.com> 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
> http://www.oxygenxml.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
>
Received on Wednesday, 11 January 2006 05:07:55 GMT

Subscribe to the Stylus Scoop newsletter for helpful XML tips and tutorials.
Email
First Name
Last Name
Company

Download Stylus Studio 6 XML Enterprise Edition

Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2007 All Rights Reserved.