element and entity declaration

mika.kekkonen at vtt.fi mika.kekkonen at vtt.fi
Tue Aug 18 09:01:56 BST 1998


1) If I have entity declarations in my dtd, do I need the element
declarations also? I have experience that I must have element declarations
in dtd, if I have dtd. For example file

<?xml version="1.0"?>
<!DOCTYPE MODULE SYSTEM "horse.dtd">
<MODULE>
&horse;
</MODULE> 

with horse.dtd

<!ENTITY horse "horsepower">

produces all the time result that I must have declaration of MODULE
element. Why? If I don't have entities, I don't need dtd at all. 

2) Which entities all xml parsers have to know without declarations? I know
that they can handle &amp;, but how about &auml; etc?

Thanks 

Mika 




xml-dev: A list for W3C XML Developers. To post, mailto:xml-dev at ic.ac.uk
Archived as: http://www.lists.ic.ac.uk/hypermail/xml-dev/
To (un)subscribe, mailto:majordomo at ic.ac.uk the following message;
(un)subscribe xml-dev
To subscribe to the digests, mailto:majordomo at ic.ac.uk the following message;
subscribe xml-dev-digest
List coordinator, Henry Rzepa (mailto:rzepa at ic.ac.uk)




More information about the Xml-dev mailing list