SAX overhaul for HAX integration.
commit3373d65a55267da925fc253c8844c0ad975a3e8d
authordlichteblau <dlichteblau>
Sun, 14 Oct 2007 17:50:11 +0000 (14 17:50 +0000)
committerdlichteblau <dlichteblau>
Sun, 14 Oct 2007 17:50:11 +0000 (14 17:50 +0000)
tree858688a3f70cbaab70b1dc4c167cbfa666c2cb39
parent3af12e21a04eab59cc3e1120e7d72e1ae5125820
SAX overhaul for HAX integration.

* dom/dom-builder.lisp (DOM-BUILDER): Inherit from
sax:content-handler.

* klacks/klacks-impl.lisp (KLACKS-DTD-HANDLER): Inherit from
sax:default-handler.

* klacks/klacks.lisp (KLACKS:SERIALIZE-EVENT): Bugfix -- call
start-cdata and end-cdata on the handler, not the source.

* xml/package.lisp: New export WITH-OUTPUT-SINK.

* xml/sax-handler.lisp (SAX): New exports abstract-handler,
content-handler, default-handler.  (STANDARD-ATTRIBUTE): Renamed
from attribute.  (ATTRIBUTE-NAMESPACE-URI, ATTRIBUTE-LOCAL-NAME,
ATTRIBUTE-QNAME, ATTRIBUTE-VALUE, ATTRIBUTE-SPECIFIED-P): Wrapper
methods for standard-attribute.  Wrapper methods for
hax:standard-attribute.  (all events): pulled into a common
define-event form.  New dummy method on null.  Added a warning to
the default method.   New error method on abstract-handler.  New
dummy method on the respective default handler classes.

* xml/sax-proxy.lisp (BROADCAST-HANDLER): Inherit from
abstract-handler, not sax-parser-mixin.

* xml/unparse.lisp (sink): Inherit from sax:content-handler.
(WITH-OUTPUT-SINK): New macro.  (INVOKE-WITH-OUTPUT-SINK): New
function.
dom/dom-builder.lisp
klacks/klacks-impl.lisp
klacks/klacks.lisp
xml/package.lisp
xml/sax-handler.lisp
xml/sax-proxy.lisp
xml/unparse.lisp