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

 


Help: OASIS Mailing Lists Help | MarkMail Help

 


 

   RE: Is this legal in a DTD?

[ Lists Home | Date Index | Thread Index ]
  • From: Ronald Bourret <rbourret@ito.tu-darmstadt.de>
  • To: "'XML-Dev mail list'" <xml-dev@ic.ac.uk>
  • Date: Tue, 6 Jul 1999 15:26:34 +0200

Serrat Jaime wrote:

> I was wondering if the following would be possible in a DTD.  Consider:
> 
> <!ELEMENT PARENTS   (FATHER?, MOTHER?)>
> <!ELEMENT FATHER   (CHILD*)>
> <!ELEMENT MOTHER   (CHILD*)>
> <!ELEMENT CHILD (SON | DAUGHTER)>      <========= Alternative!
> <!ELEMENT SON (#PCDATA)>
> <!ELEMENT DAUGHTER (#PCDATA)>
> 
> I've seen OR in the context of element attributes, of course, but what about
> in element definitions?

Yes, it is legal.

-- Ron Bourret


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 (un)subscribe, mailto:majordomo@ic.ac.uk the following message;
(un)subscribe 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)






 

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

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