W3C home > Mailing lists > Public > xmlschema-dev@w3.org > May 2001

RE: Sequences of choices

From: John Black <jblack@deltek.com>
Date: Fri, 11 May 2001 07:53:02 -0400
Message-ID: <B02D87410885D411919B0008C74CA25026232F@EXCHANGE>
To: xmlschema-dev@w3.org
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 GMT

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