W3C home > Mailing lists > Public > www-xml-schema-comments@w3.org > January to March 2000

Re: A "unordered" compositor ?

From: Henry S. Thompson <ht@cogsci.ed.ac.uk>
Date: 08 Mar 2000 08:34:22 +0000
To: David Bourget <dbourget@videotron.ca>
Cc: www-xml-schema-comments@w3.org
Message-ID: <f5b8zztyi5t.fsf@cogsci.ed.ac.uk>
David Bourget <dbourget@videotron.ca> writes:

> I might just not have well understood the current specs, but I think an
> unordered compositor would be really great, I always missed this with
> DTDs. That is, a compositor meaning "Any sequence of these elements,
> within the limits of their minOccurs and maxOccurs attributes". 
> 
> Why:
> To achieve the same result as in :
> <!ELEMENT (foo | bar)*>
> <!-- Foo and bar can appear zero or one time each -->
> WITHOUT requiring to comments.

That's what the 'all' group is for, except we don't support the 'zero' 
case.  We'll probably fix that.

<complexType>
 <all>
  <element ref='foo'/>
  <element ref='bar'/>
 </all>
</complexType>

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 Wednesday, 8 March 2000 03:34:25 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Sunday, 6 December 2009 18:12:46 GMT