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

 


Help: OASIS Mailing Lists Help | MarkMail Help

 


 

   Is this legal in a DTD?

[ Lists Home | Date Index | Thread Index ]
  • From: Serrat Jaime - jasr <jasr@im.se>
  • To: "'XML-Dev mail list'" <xml-dev@ic.ac.uk>
  • Date: Tue, 6 Jul 1999 15:05:13 +0200

Title: Is this legal in a DTD?

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?

-- jaime "jim" serrat

Team Manager of PDA08 - Messaging Engine        Office:         +1 609-797-3227
Product Development                             Fax:    +1 609-797-6660
Industri-Matematik                              Mobile: +1 609-315-3338
Five Greentree Centre                           Web:    http://www.im.se
Marlton, NJ 08053                               Email:  jasr@im.se






 

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

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