W3C home > Mailing lists > Public > xmlschema-dev@w3.org > January 2006

Re: optional, but at least one required

From: George Cristian Bina <george@oxygenxml.com>
Date: Fri, 06 Jan 2006 11:33:16 +0200
Message-ID: <43BE395C.4000505@oxygenxml.com>
To: bkbonner@gmail.com
Cc: xmlschema-dev@w3.org

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 Friday, 6 January 2006 09:31:33 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Tuesday, 11 January 2011 00:14:52 GMT