W3C home > Mailing lists > Public > xmlschema-dev@w3.org > March 2001

Re: [Moderator Action] Question about modelling

From: Henry S. Thompson <ht@cogsci.ed.ac.uk>
Date: 12 Mar 2001 15:03:37 +0000
To: "Thomas F. Gundersen" <Thomas.Gundersen@fast.no>
Cc: <xmlschema-dev@w3.org>
Message-ID: <f5bpufnyqpi.fsf@cogsci.ed.ac.uk>
"Thomas F. Gundersen" <Thomas.Gundersen@fast.no> writes:

> How can I model the following relationship :
> 
> Element A must contain exactly one element B, can contain 0 to N element C,
> and
> can contain 0 or 1 of elements D, E and/or F. I do NOT want order to be
> significant.
> 
> For example, this should be legal :
> A
> 	B
> 	C
> 	D
> 	C
> 	E
> 	C
> 	C
> 
> or
> 
> A
> 	C
> 	C
> 	C
> 	B
> 	D
> 
> Is this even possible ?

No.  If you don't care about order, then fix an order and you'll be
fine.

ht
-- 
  Henry S. Thompson, HCRC Language Technology Group, University of Edinburgh
          W3C Fellow 1999--2001, part-time member of W3C Team
     2 Buccleuch Place, Edinburgh EH8 9LW, SCOTLAND -- (44) 131 650-4440
	    Fax: (44) 131 650-4587, e-mail: ht@cogsci.ed.ac.uk
		     URL: http://www.ltg.ed.ac.uk/~ht/
Received on Monday, 12 March 2001 10:03:40 GMT

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