W3C home > Mailing lists > Public > xmlschema-dev@w3.org > December 2000

Re: [Moderator Action] Use of the <all> element

From: Henry S. Thompson <ht@cogsci.ed.ac.uk>
Date: 19 Dec 2000 15:49:43 +0000
To: "Liam Mullan" <liam.mullan@virgin.net>
Cc: <xmlschema-dev@w3.org>
Message-ID: <f5b3dfk5s2w.fsf@cogsci.ed.ac.uk>
"Liam Mullan" <liam.mullan@virgin.net> writes:

> Can someone confirm that the following would be illegal use of <all> groups?
> (ie because the <all> isn't at the top level of the A-group model group?)
>  
> <group name="A-B-group>
>  <all>
>   <element ref="A-partial" minOccurs="1" />
>   <element ref="B-partial" minOccurs="1" />
>  </all>
> </group>
>  
> <group name="A-C-group">
>  <all>
>   <element ref="A-partial" minOccurs="1" />
>   <element ref="C-partial" minOccurs="1" />
>  </all>
> </group>
>  
> <group name="A-group>
>  <choice>
>   <group ref="A-B-group" />
>   <group ref="A-C-group" />
>  </choice>
> </group>

Not allowed, not only because of the top level constraint, but also
becaue of the unique attribution requireemtn.

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 Tuesday, 19 December 2000 10:50:07 GMT

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