[XML-SIG] Character entities (XHTML)

Martin v. Loewis martin@v.loewis.de
10 May 2002 08:16:06 +0200


"Thomas B. Passin" <tpassin@comcast.net> writes:

> It seems to have done so - at least, if the DTD is removed, the
> document is rejected by virtue of unknown entities.  Doesn't that
> that indicate that the (x)HTML DTD was resolved?

No. Expat, on its own, will never try to access external
entities. Also, expatreader will always refer to the EntityResolver
for that - although the default entity resolver will arrange to open
the system ID.

Expat *will* report an error if it can determine that there is one
even without reading the external subset - e.g. if the document is
standalone, or if there is no declared external subset. The latter is
what you are observing: with only an internal subset, expat can know
what the available entities are.

Regards,
Martin