[XML-DEV Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] Re: SAX and whitespace (was Re: Problems with whitespace and msxml)
Peter Murray-Rust writes: > - is it possible for an author to extend SAX with additional non-SAX > calls? [In the same way as a C library may have the standard calls and some > additional manufacturer-specific ones]. Thus if we agree that doNotation > functionality is not part of SAX, could a core SAX interface be extended by > a parser writer without breaking the SAX bit? [I assume yes, but I don't > know about interface design]. If you're discussing the parser class, then it is free to implement any functionality beyond the interface; if you are discussing the application (call-back) class, then there are two choices: 1) it may implement another, tool-specific interface as well as SAX; or 2) it may implement an interface that extends the SAX interface (say, by adding lexical events like comments or by adding DTD events). In either case, you could still use your application class with other XML parsers, but the additional methods would never be called. > - if it *is* possible to extend it in this way, can we make sure we get > the core as simple as possible so we all agree on it? Parser writers can > then add additional non-standard functionality [carefully documented, of > course :-)] > - there is enormous value for hackers like me to be able to find a simple > core functionality and get that working rapidly. Then the additional > features can be gradually brought in. True, but it's never quite so simple, because every parser writer would implement the additional functionality in a different way. We have to make certain that we have covered at least the core features, and that means that we have to agree on what the core features are (I'll follow up with a separate message). > - what is the position on error handling? In GUI applications like JUMBO > it's important to let the user know what is happening, so I have trapped > the AElfred errors. I think that we may want to distinguish fatal errors from warnings (although Ælfred doesn't currently do so). Normally, a warning would print a message to a log or to STDERR, while an error would throw a java.lang.Error or a java.lang.Exception. 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
|