RE: Sequences of choices

Ian,

How about this:

<?xml version = "1.0" encoding = "UTF-8"?>
<xsd:schema xmlns:xsd = "http://www.w3.org/2000/10/XMLSchema">
	<xsd:element name = "MultiChoice">
		<xsd:complexType>
			<xsd:choice maxOccurs = "unbounded">
				<xsd:element name = "E1" type =
"xsd:anyType"/>
				<xsd:element name = "E2" type =
"xsd:anyType"/>			</xsd:choice>
		</xsd:complexType>
	</xsd:element>
</xsd:schema>

John Black

-----Original Message-----
From: I. France [mailto:ian@informatics.bangor.ac.uk]
Sent: Friday, May 11, 2001 6:56 AM
To: xmlschema-dev@w3.org
Subject: Sequences of choices


Hi,

  The following problem arose recently. How to convert a DTD with a
declaration (E1 | E2)+ into a schema document. Obviously neither choice
nor sequence do the job. Is it possible to do in schema? 

cheers,

Ian.
-- 
Dr Ian France, 
School of Informatics, University of Wales
Dean Street, Bangor, Gwynedd, UK LL57 1UT
Email: ian@informatics.bangor.ac.uk
Tel: (01248) 382716

Received on Friday, 11 May 2001 07:48:28 UTC