- 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
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 UTC