W3C home > Mailing lists > Public > xmlschema-dev@w3.org > October 2008

Re: One of more elements required

From: Age Bosma <agebosma@gmail.com>
Date: Fri, 24 Oct 2008 19:43:26 +0200
Message-ID: <d2b2606c0810241043m47015e9by8dfe6fa19885d226@mail.gmail.com>
To: xmlschema-dev@w3.org

Thank you for the reply, sorry for the response delay.

On 23/10/2008, Stan Kitsis <Stan.Kitsis@microsoft.com> wrote:
> If I understand your requirements right, you want
>
>   <xsd:choice minOccurs="1" maxOccurs="unbounded">
>      <xsd:element name="platform" type="platformType"/>
>      <xsd:element name="device" type="deviceType"/>
>   </xsd:choice>
>

I don't understand. Doesn't the choice limit me to only use one of the
two elements in the parent element? I'd like to use both (multiple
times if required) but at least one of the elements should be present.

Yours,

Age Bosma
Received on Friday, 24 October 2008 17:44:01 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Monday, 16 March 2009 11:13:42 GMT