Re: [Moderator Action] Choice group element

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 UTC