Re: optional, but at least one required

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 UTC