OASIS Mailing List ArchivesView the OASIS mailing list archive below
or browse/search using MarkMail.

 


Help: OASIS Mailing Lists Help | MarkMail Help

 


 

   Re: DTD design

[ Lists Home | Date Index | Thread Index ]
  • From: Marcus Carr <mrc@allette.com.au>
  • To: xml-dev@ic.ac.uk
  • Date: Thu, 23 Dec 1999 10:13:48 +1100


heiko.grussbach@crpht.lu 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@listserv.heanet.ie>'.


--
Regards,

Marcus Carr                      email:  mrc@allette.com.au
___________________________________________________________________
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@ic.ac.uk
Archived as: http://www.lists.ic.ac.uk/hypermail/xml-dev/ and on CD-ROM/ISBN 981-02-3594-1
To unsubscribe, mailto:majordomo@ic.ac.uk the following message;
unsubscribe xml-dev
To subscribe to the digests, mailto:majordomo@ic.ac.uk the following message;
subscribe xml-dev-digest
List coordinator, Henry Rzepa (mailto:rzepa@ic.ac.uk)



  • References:



 

News | XML in Industry | Calendar | XML Registry
Marketplace | Resources | MyXML.org | Sponsors | Privacy Statement

Copyright 2001 XML.org. This site is hosted by OASIS