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

  • From: Serrat Jaime - jasr <jasr@i...>
  • To: "'XML-Dev mail list'" <xml-dev@i...>
  • 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@i...



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