W3C home > Mailing lists > Public > xmlschema-dev@w3.org > January 2006

using xs:choice inside xs:all

From: Mahesh Vittal <mvittal@gmail.com>
Date: Mon, 9 Jan 2006 12:19:10 -0800
Message-ID: <c6e6ebc0601091219m78b9af2s9252eec75c8f2557@mail.gmail.com>
To: xmlschema-dev@w3.org
Hi ,

I am trying for an XML Schema which would achieve the following

[1]  Atleast one or both of "element1" or "element2" can occur
[2]  Atleast one or a combination of <element3>....<element5>
[3]  <element1> ....<element<5> can occur in any order.


I was able to achieve [1] & [2] by using a <xs:choice maxOccurs="unbounded">
for the two sets of elements and arrange it inside a <xs:sequence> but the
functionality I want is without ordering. Any help on this is appreciated.

Received on Tuesday, 10 January 2006 09:46:26 UTC

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