W3C home > Mailing lists > Public > xmlschema-dev@w3.org > December 2002

Re: Arbitrary Set of Elements (xsd)

From: Morris Matsa <mmatsa@us.ibm.com>
Date: Tue, 17 Dec 2002 13:16:49 -0500
To: Jan Mendling <mendling@web.de>
Cc: xmlschema-dev@w3.org
Message-ID: <OF5D90B6FC.123E95E8-ON85256C92.00642B08@pok.ibm.com>



<xsd:choice minOccurs="0" maxOccurs="unbounded">
 <xsd:element ref="e1" />
 <xsd:element ref="e2" />
 <xsd:element ref="e3" />
</xsd:choice>


Jan Mendling <mendling@web.de>@w3.org on 12/17/2002 11:58:46 AM

Sent by:    xmlschema-dev-request@w3.org


To:    xmlschema-dev@w3.org
cc:
Subject:    Arbitrary Set of Elements (xsd)




Hello Schema-experts,
I have a question about grouping of elements.
Consider definitions of three different kind of elements, i.e. < e1/>,<
e2/>, and < e3/> as instances of a schema
How can I define a grouping (in XML Schema) that allows any sequence of
these elements with any possible amount of occurrences, like:

< e1/>
< e2/>
< e1/>
< e3/>
< e1/>
.... or any other sequence of these three elements?

I tried using the all-statement, but it is not allowed in a sequence-tag.
Thank you in advance for your support.
Received on Tuesday, 17 December 2002 13:16:47 GMT

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