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: <>
To: W3C XML Schema Comments list <www-xml-schema-comments@w3.org>

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
Andrew Curry


<xs:element name="Match">
     <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:attributeGroup ref="id"/>
Received on Monday, 29 July 2002 18:00:03 UTC

This archive was generated by hypermail 2.3.1 : Wednesday, 7 January 2015 14:50:00 UTC