RE: the xsd:all group

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