xml-general mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Sean Kelly" <ke...@ad1440.net>
Subject Re: Are DTD elements hierarchical?
Date Mon, 28 Aug 2000 22:52:34 GMT
Are DTD elements hierarchical?????????Yes, your "name" element is defined
twice in your DTD, which is illegal.

You can have your "name" element occur at multiple levels---there's no
problem with that.  But the "name" element has to have the same content
model (PCDATA in your case) no matter where it occurs.

So pick one of your

<!ELEMENT name (#PCDATA)>

lines in your DTD and delete it.  It doesn't matter which one.

--Sean



Mime
View raw message