W3C home > Mailing lists > Public > www-xml-schema-comments@w3.org > October to December 2000

Element self-reference???

From: <Mike.Baker@ivans.com>
Date: 06 Oct 2000 16:15:34 -0400
To: www-xml-schema-comments@w3.org
Message-Id: <"1006201215-Element self-reference???*/G=Mike/S=Baker/O=ivans/PRMD=notes/ADMD=mailconnect/C=us/"@MHS>

Hi All.  These are DTD syntax, but are the following constructs legal?

<!ELEMENT person (adr | bday | person | phone | photo)*>

<!ELEMENT person (adr, bday, person, phone, photo)*>

In other words, is it OK for 'person' to refer to 'person' ?

I would think the second one would be invalid, but how about the first one ?

Thanks in advance for the help!!

Mike Baker
Received on Friday, 6 October 2000 16:15:08 UTC

This archive was generated by hypermail 2.3.1 : Wednesday, 7 January 2015 14:49:53 UTC