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

Re: [Moderator Action] Choice group element

From: Henry S. Thompson <ht@cogsci.ed.ac.uk>
Date: 05 Mar 2001 16:24:00 +0000
To: seema_mehta@nzi.co.nz
Cc: xmlschema-dev@w3.org
Message-ID: <f5bvgpotc9r.fsf@cogsci.ed.ac.uk>
seema_mehta@nzi.co.nz writes:

> Can you use choice to select elements of the same name but different type.
> In other words is the following legal:
> 
> <choice>
>     <element    name="a"    type="x"/>
>     <element    name="a"    type="y"/>
>     <element    name="a"    type="z"/>
> </choice>

Sorry, this is ruled out in W3C XML Schema.  We wanted parsing to be
locally deterministic.

ht
-- 
  Henry S. Thompson, HCRC Language Technology Group, University of Edinburgh
          W3C Fellow 1999--2001, part-time member of W3C Team
     2 Buccleuch Place, Edinburgh EH8 9LW, SCOTLAND -- (44) 131 650-4440
	    Fax: (44) 131 650-4587, e-mail: ht@cogsci.ed.ac.uk
		     URL: http://www.ltg.ed.ac.uk/~ht/
Received on Monday, 5 March 2001 11:24:04 GMT

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