W3C home > Mailing lists > Public > www-xml-schema-comments@w3.org > July to September 2002

Help !!!

From: by way of <andrew.curry@pa.press.net>
Date: Mon, 29 Jul 2002 15:57:47 -0600
Message-Id: <5.1.0.14.1.20020729155744.025bc4b8@localhost>
To: W3C XML Schema Comments list <www-xml-schema-comments@w3.org>




Hello,
Below i am trying to sat a Match element can contain each of its child
elements in any order, but each child element also has restrictions i.e. a
team can only appear twice. I tried the below, but as i have learnt xs:all
only allows 0 or one as values. Has anyone any ideas on how to get around
this?
Cheers
Andrew Curry

example:

<xs:element name="Match">
   <xs:complexType>
    <xs:choice>
     <xs:element ref="Team" minOccurs="0" maxOccurs="2"/>
     <xs:element ref="Officials" minOccurs="0"/>
     <xs:element ref="Event" minOccurs="0" maxOccurs="unbounded"/>
     <xs:element ref="TextFeed" minOccurs="0" maxOccurs="unbounded"/>
     <xs:element ref="MatchStats" minOccurs="0" maxOccurs="unbounded"/>
     <xs:element ref="Ratings" minOccurs="0" maxOccurs="unbounded"/>
    </xs:choice>
    <xs:attributeGroup ref="id"/>
   </xs:complexType>
  </xs:element>
Received on Monday, 29 July 2002 18:00:03 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Sunday, 6 December 2009 18:13:01 GMT