W3C home > Mailing lists > Public > xmlschema-dev@w3.org > June 2004

Help with choice model group!

From: Alexander Sherwood <asherwood@phs-net.com>
Date: Tue, 15 Jun 2004 09:26:00 -0400
Message-Id: <6.1.0.6.2.20040615092032.10c0c268@64.215.149.138>
To: xmlschema-dev@w3.org

Greetings all,

Given the following snippet:

<addresses>
	<address street="" city="" state="" zip="" type="payment | mailing"/>
</addresses>

I'd like to require at least one _address_ element with a type attribute equal to "mailing", and _one_ optional address element with a type attribute equal to "payment", for a total maxOccurs of 2.

Any ideas? Thanks!



----------------------------------
Alex Sherwood
PHS Collection Agency
THE COLLECTORS
P:   813-283-4579
F:   301.664.6834
W: www.phs-net.com
Received on Tuesday, 15 June 2004 09:28:25 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Tuesday, 11 January 2011 00:14:44 GMT