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

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:choice maxOccurs = "unbounded">
				<xsd:element name = "E1" type =
				<xsd:element name = "E2" type =
"xsd:anyType"/>			</xsd:choice>

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


  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? 


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

This archive was generated by hypermail 2.3.1 : Wednesday, 7 January 2015 14:55:51 UTC