W3C home > Mailing lists > Public > www-xml-schema-comments@w3.org > October to December 2002

"xs:all" with minOccurs="0" and maxOccurs="unbounded"

From: Kerz, Antony L <Antony.Kerz@aetna.com>
Date: Tue, 29 Oct 2002 13:26:46 -0700
Message-Id: <5.1.0.14.1.20021029132640.036c43c8@localhost>
To: W3C XML Schema Comments list <www-xml-schema-comments@w3.org>

Hi,

I am trying to identify a schema for the following structure where,
"struct" elements contain one or more "struct" and/or "field" elements
in any order.

Here are some valid examples:

<struct>
   <field/>
   <field/>
</struct>

<struct>
   <struct>
     <field/>
   </struct>
   <field/>
   <field/>
</struct>

<struct>
   <field/>
   <field/>
   <struct>
     <field/>
   </struct>
   <field/>
   <struct>
     <field/>
   </struct>
   <field/>
</struct>

etc...ad nauseum...

what i really want is:

"xs:all" with minOccurs="0" and maxOccurs="unbounded"

but this isn't allowed cause "xs:all" is intended for exactly one of
each element.

Any one have a valid solution for this schema definition?

Thanks,
Tony.

This e-mail, including attachments, is intended for the exclusive use of 
the person or entity to which it is addressed and may contain confidential 
or privileged information.  If the reader of this e-mail is not the 
intended recipient or his or her authorized agent, the reader is hereby 
notified that any dissemination, distribution or copying of this e-mail is 
prohibited.  If you think that you have received this e-mail in error, 
please advise the sender by reply e-mail of the error and then delete this 
e-mail immediately.  Thank you.  Aetna
Received on Tuesday, 29 October 2002 15:34:43 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Sunday, 6 December 2009 18:13:01 GMT