Is this legal in a DTD?
Serrat Jaime - jasr
jasr at im.se
Tue Jul 6 15:03:22 BST 1999
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 at im.se
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mailman.ic.ac.uk/pipermail/xml-dev/attachments/19990706/653136ed/attachment.htm
More information about the Xml-dev
mailing list