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

Re: [Moderator Action] Schema Group

From: Henry S. Thompson <ht@cogsci.ed.ac.uk>
Date: 19 Feb 2001 15:07:50 +0000
To: Bruce LeMaster <bruce.lemaster@raleigh.hcl.com>
Cc: xmlschema-dev@w3.org
Message-ID: <f5bwvamhfsp.fsf@cogsci.ed.ac.uk>
Bruce LeMaster <bruce.lemaster@raleigh.hcl.com> writes:

> I'm trying to create a group of elements within a complexType (see snip
> below).  I can't use 'all' because it only allows one of each element in the
> group.  I can't use 'sequence' because the elements can be in any order.  The
> elements can be in any order, some with more than one allowed.  How can I
> accomplish this?

Use a <choice maxOccurs="unbounded">
       ...
      </choice>

and accept that this doesn't _exactly_ capture what you want to
require wrt the elements which cannot occur more than once.

Or reconsider your willingness to allow elements in any order.

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, 19 February 2001 10:07:59 UTC

This archive was generated by hypermail 2.3.1 : Wednesday, 7 January 2015 14:55:51 UTC