On Tue, 10 Apr 2001, Dane Foster wrote:

> Hello all.  I'm hoping one of you schema gurus can help me with a little
> problem I'm having.  I'm trying to specify in a schema that a group of
> elements can appear multiple times in any order.  I know I can't use the
> [<all>] element because it has a maximum carnality of one.  EX
> 
> <xsd:complexType name="myComplexType">
>   <xsd:the_type_that_will_make_this_work>
>     <!-- I want the two elements below to appear in any order and multiple
> times-->
>     <xsd:element ref="some_ref" minOccurs="0" maxOccurs="unbounded"/>
>     <xsd:element ref="some_other_ref" minOccurs="0" maxOccurs="unbounded"/>
>   </xsd:the_type_that_will_make_this_work>
> </xsd:complexType>

An <xsd:choice minOccurs="0" maxOccurs="unbounded">, with the elements
inside the choice having min/maxOccurs of 1 should do what you want
(though I'm not exactly sure of the CR/PR syntax).

Ian

-- 
Ian Roberts, Software Engineer        DecisionSoft Ltd.
Telephone: +44-1865-203192            http://www.decisionsoft.com


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to