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

RE: the xsd:all group

From: Xuejun Li (SH/RDC) <xuejun.li@ericsson.com>
Date: Fri, 29 Aug 2003 10:16:46 +0800
Message-ID: <55CF389EF371D511B67C00508BADDC2F02892AA9@ecnshnt514.itc.ericsson.se>
To: "'ht@cogsci.ed.ac.uk'" <ht@cogsci.ed.ac.uk>
Cc: "'xmlschema-dev@w3.org'" <xmlschema-dev@w3.org>

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

No, that does not solve my problem. What I want is, the elements are still mandatory,
each with thier own occrence constraint, but the sequence is not guaranteed. Using 
xs:choice min=0 max=unbounded gives too much flexibility: some mandatory elements are
not optional.
Received on Thursday, 28 August 2003 22:14:02 UTC

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 23:15:12 UTC