Re: SAX: do we want a base class
David Ornstein writes: > My point is about a relationship: as the usefulness of the base > class climbs towards necessity, the probability of people using > SAX-implementing parsers *that don't come with the base class > supplied* declines. This is only important iff the design of the > API is influenced by the assumption of the presence of the base > class. Some of the "design issue" posts seemed to me to be heading > in that direction. If we divide the world into SAX implementors > and SAX clients, I think that the base class is a useful thing for > *clients* to build and use; it's how I'd do it. As such, I think > it probably doesn't belong on the implementor side of the line. I should clarify: the SAX interfaces and the XmlAppBase base class will be written only once for each programming language, and they will live in their own package (in languages that use packages). XmlAppBase will depend only on the interfaces for information -- in other words, there will be no such thing as a SAX-implementing parser without the base class (parser writers need not be concerned with the base class at all). In Java, for example, there would be three class files in the SAX package (I'll deal with naming and packaging in a later posting): XmlParser.class The interface for a SAX-aware parser XmlApplication.class The interface for an object with event handlers. XmlAppBase.class A base class for an object with event handlers. All Java-based XML parsers that use SAX will refer to this package, and all will have these three class files available in the same location. The same would apply to C++ headers, etc. I expect that in Java XmlAppBase.class will weigh in at under 2K (perhaps far under). All the best, David -- David Megginson ak117@f... Microstar Software Ltd. dmeggins@m... http://home.sprynet.com/sprynet/dmeggins/ xml-dev: A list for W3C XML Developers. To post, mailto:xml-dev@i... Archived as: http://www.lists.ic.ac.uk/hypermail/xml-dev/ To (un)subscribe, mailto:majordomo@i... the following message; (un)subscribe xml-dev To subscribe to the digests, mailto:majordomo@i... the following message; subscribe xml-dev-digest List coordinator, Henry Rzepa (mailto:rzepa@i...)
PURCHASE STYLUS STUDIO ONLINE TODAY!
Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!
Download The World's Best XML IDE!
Accelerate XML development with our award-winning XML IDE - Download a free trial today!
Subscribe in XML format