[
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
|