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

Re: xsd:group, minOccurs and xsd:choice

From: Jeni Tennison <jeni@jenitennison.com>
Date: Wed, 5 Feb 2003 15:08:49 +0000
Message-ID: <761318465112.20030205150849@jenitennison.com>
To: "Nick Brook" <nick.brook@3glab.com>
CC: xmlschema-dev@w3.org

Hi Nick,

> I'm trying to create a group with a choice of a number of elements.
> I want the behaviour that at least one of the choice must exist, but
> can't find a way in Schema to enforce this.

Your schema is correct, as far as I can tell, and MSXML4 correctly
states that both:

> <change>
>   <do>
>    </do>
> </change>


> <change>
>   <do>
>     <boguselement/>
>   </do>
>  </change>

are errors. I suspect that whatever validator you're using is buggy.



Jeni Tennison
Received on Wednesday, 5 February 2003 10:09:07 UTC

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