[Home] [By Thread] [By Date] [Recent Entries]

  • From: Marcus Carr <mrc@a...>
  • To: xml-dev@i...
  • Date: Thu, 23 Dec 1999 10:13:48 +1100


heiko.grussbach@c... wrote:

> I have the following problem, I want to define an element E that may
> contain elements A,B,C. Order should be insignificant and A,B and C are all
> optional. Furthermore, A,B and C may each be replaced by X.

If more elements were to be added as children of E, the exponential combinations would make maintenance of content models untenable - it's
reasonable then to conclude that this is not an appropriate approach from the outset. I would use something like:

<!ELEMENT E   (A | B | C | X)*>

and use a schema or XSL to advise when elements are found to behave in a way contrary to your intentions but not expressed by the content model.

BTW, this question is probably more suited to 'General discussion of Extensible Markup Language <XML-L@l...>'.


--
Regards,

Marcus Carr                      email:  mrc@a...
___________________________________________________________________
Allette Systems (Australia)      www:    http://www.allette.com.au
___________________________________________________________________
"Everything should be made as simple as possible, but not simpler."
       - Einstein



xml-dev: A list for W3C XML Developers. To post, mailto:xml-dev@i...
Archived as: http://www.lists.ic.ac.uk/hypermail/xml-dev/ and on CD-ROM/ISBN 981-02-3594-1
To unsubscribe, mailto:majordomo@i... the following message;
unsubscribe xml-dev
To subscribe to the digests, mailto:majordomo@i... the following message;
subscribe xml-dev-digest
List coordinator, Henry Rzepa (mailto:rzepa@i...)



  • References:
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member