- From: Xuejun Li (SH/RDC) <xuejun.li@ericsson.com>
- Date: Fri, 29 Aug 2003 10:16:46 +0800
- 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. >ht >-- 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