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: Thu, 12 Jan 2006 12:00:52 +0200
Message-ID: <43C628D4.7030605@oxygenxml.com>
To: bkbonner@gmail.com
CC: xmlschema-dev@w3.org

Hi Brian,

 > George, thanks for the tip, I'm assuming that the (a|b|c)+ is the
 > example that you gave me.

No, that in XML Schema should be:

<xs:complexType>
     <xs:choice maxOccurs="unbounded">
         <xs:element ref="a"/>
         <xs:element ref="b"/>
         <xs:element ref="c"/>
     </xs:choice>
</xs:complexType>

Best Regards,
George
---------------------------------------------------------------------
George Cristian Bina
<oXygen/> XML Editor, Schema Editor and XSLT Editor/Debugger
http://www.oxygenxml.com


Brian Bonner wrote:
> 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.
Received on Thursday, 12 January 2006 09:58:44 GMT

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