W3C home > Mailing lists > Public > xmlschema-dev@w3.org > August 2003

Re: the xsd:all group

From: Henry S. Thompson <ht@cogsci.ed.ac.uk>
Date: Thu, 28 Aug 2003 14:02:45 +0100
To: "Xuejun Li (SH/RDC)" <xuejun.li@ericsson.com>
Cc: "'xmlschema-dev@w3.org'" <xmlschema-dev@w3.org>
Message-ID: <f5bn0duvssq.fsf@erasmus.inf.ed.ac.uk>

"Xuejun Li (SH/RDC)" <xuejun.li@ericsson.com> writes:

> The xml schema specification has put a lot limitations on how the xsd:all
> should be used. Including all the elements must appear once (minOccurs and
> maxOccurs = 0 or 1) and limited to be used only on top level of any content
> model.

> Then I wonder how shall I define my schema when I don't acually care about
> the sequence but I have elements that could appear more than once and they
> are not at the top level?

Use xs:choice min=0 max=unbounded.

ht
-- 
  Henry S. Thompson, HCRC Language Technology Group, University of Edinburgh
                      Half-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/
 [mail really from me _always_ has this .sig -- mail without it is forged spam]
Received on Thursday, 28 August 2003 09:03:14 GMT

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