From b8ba07a9199645d379d0cc22e9624bc4b0a18d9e Mon Sep 17 00:00:00 2001 From: dlichteblau Date: Sun, 22 Apr 2007 13:23:54 +0000 Subject: [PATCH] +
  • New class broadcast-handler as a generalization + of the older sax-proxy.
  • +
  • New class tapping-source, a klacks source that + relays events from an upstream klacks source unchanged, while also + emitting them as SAX events to a user-specified handler at the + same time.
  • + Fixed serialize-event to generate + start-prefix-mapping and end-prefix-mapping events. New function + map-current-namespace-declarations. --- cxml.asd | 3 +- doc/cxml.css | 10 ++-- doc/index.xml | 12 ++++- doc/klacks.xml | 25 ++++++++++ doc/sax.xml | 37 +++++++++++---- klacks/klacks-impl.lisp | 33 ++++++++++--- klacks/klacks.lisp | 27 +++++++++-- klacks/package.lisp | 8 +++- klacks/tap-source.lisp | 103 ++++++++++++++++++++++++++++++++++++++++ xml/package.lisp | 8 +++- xml/sax-proxy.lisp | 35 +++++++++++--- 11 files changed, 264 insertions(+), 37 deletions(-) create mode 100644 klacks/tap-source.lisp diff --git a/cxml.asd b/cxml.asd index 64746e2..37bc06b 100644 --- a/cxml.asd +++ b/cxml.asd @@ -118,7 +118,8 @@ :components ((:file "package") (:file "klacks") - (:file "klacks-impl")) + (:file "klacks-impl") + (:file "tap-source")) :depends-on (:cxml-xml)) (asdf:defsystem :cxml-test diff --git a/doc/cxml.css b/doc/cxml.css index 5e082c1..8c108a4 100644 --- a/doc/cxml.css +++ b/doc/cxml.css @@ -10,10 +10,11 @@ div.sidebar-title { background-color: #9c0000; border: solid #9c0000; border-top-width: 1px; - border-bottom-width: 0px; + border-bottom-width: 2px; border-left-width: 4px; border-right-width: 0px; - margin: 0em 2pt 1px 2em; + padding-left: 1px; + margin: 0em 2pt 0px 2em; } div.sidebar-title a { @@ -21,15 +22,14 @@ div.sidebar-title a { } div.sidebar-main { - background-color: #eeeeee; + background-color: #f7f7f7; border: solid #9c0000; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 4px; border-right-width: 0px; margin: 0em 2pt 1em 2em; - padding-top: 2px; - padding-left: 2px; + padding: 1em; } div.sidebar ul.main { diff --git a/doc/index.xml b/doc/index.xml index 69c450b..5526974 100644 --- a/doc/index.xml +++ b/doc/index.xml @@ -55,12 +55,20 @@
  • xml:base support (SAX and Klacks only, not yet used in DOM). See documentation here and here.
  • -
  • Fixed attributes to carry an lname even without when occurring +
  • New class broadcast-handler as a generalization + of the older sax-proxy.
  • +
  • New class tapping-source, a klacks source that + relays events from an upstream klacks source unchanged, while also + emitting them as SAX events to a user-specified handler at the + same time.
  • +
  • Changed attributes to carry an lname even when occurring without a namespace.
  • Klacks improvements: Incompatibly changed klacks:find-element and find-event to consider the current event as a result. Added klacks-error, klacks:expect, klacks:skip, - klacks:expecting-element.
  • + klacks:expecting-element. Fixed serialize-event to generate + start-prefix-mapping and end-prefix-mapping events. New function + map-current-namespace-declarations.

    rel-2007-02-18