SAX2 RFD: LexicalHandler draft v.1.1

James Clark jjc at
Sun Mar 21 18:36:55 GMT 1999

David Megginson wrote:

>     public abstract void startEntity (String name)
>         throws SAXException;
>     public abstract void endEntity (String name)
>         throws SAXException;

How does this allow me to find out about entity references in attribute
values (including defaulted attribute values)?

It might be convenient to distinguish parameter entities and general
entities here.  The application can do this itself by maintaining the
appropriate state, but there doesn't seem any advantage in munging
together general and parameter entities.

How would general entity references in default attribute values in
attribute list declarations be handled?

Would all parameter entity references be reported or just those at the
top-level (ie between markup declarations)?

I don't think support for entities can be fully designed without also
considering DTD information.


xml-dev: A list for W3C XML Developers. To post, mailto:xml-dev at
Archived as: and on CD-ROM/ISBN 981-02-3594-1
To (un)subscribe, mailto:majordomo at the following message;
(un)subscribe xml-dev
To subscribe to the digests, mailto:majordomo at the following message;
subscribe xml-dev-digest
List coordinator, Henry Rzepa (mailto:rzepa at

More information about the Xml-dev mailing list