SAX2: Renaming DTDHandler
david at megginson.com
Wed Dec 22 15:02:31 GMT 1999
In SAX 1.0, the DTDHandler reports only those declarations that the
XML 1.0 REC requires to be reported: notation declarations and
unparsed entity declarations.
In SAX2, we will be providing optional support for other types of DTD
declarations in the DeclHandler. Unfortunately, that creates a lot of
opportunity for confusion, because of the way DTDHandler is named.
Since we're implementing SAX2 in a new package anyway, I'm interested
in hearing suggestions for renaming DTDHandler so that the name more
accurately describes its purpose (reporting notation and unparsed
entity declarations). Here are some ideas off the top of my head:
Since unparsed entities and notations both have to do with non-XML
data, this name is technically accurate. Unfortunately, it will
collide in the future with any support for the different data-type
approach in XML Schemas.
Klunky, but usable.
A little more confusing.
I know that the perfect name's out there somewhere. Personally, I'd
make these declarations optional and dump them into DeclHandler with
the rest if I could, but the XML 1.0 REC is quite explicit on this
All the best,
David Megginson david at megginson.com
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/ and on CD-ROM/ISBN 981-02-3594-1
To unsubscribe, mailto:majordomo at ic.ac.uk the following message;
To subscribe to the digests, mailto:majordomo at ic.ac.uk the following message;
List coordinator, Henry Rzepa (mailto:rzepa at ic.ac.uk)
More information about the Xml-dev