Commit Graph

16 Commits

Author SHA1 Message Date
bc8dbf6d51 fixed variable name in with-source 2007-12-02 20:56:23 +00:00
3373d65a55 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.
2007-10-14 17:50:11 +00:00
4f731703de Minor klacks enhancements.
klacks/klacks.lisp (CONSUME-CHARACTERS): New function.

	klacks/package.lisp (KLACKS): Export dribble-handler and
	consume-characters.
2007-10-03 15:22:57 +00:00
2e94373013 klacks octet array fix (thanks to emarsden for the bug report) 2007-08-23 23:16:00 +00:00
ccbfd1e747 do what the documentation says and allow an octets argument to make-source 2007-06-16 09:41:22 +00:00
a486018c85 nach :eof beliebig lange nil liefern 2007-05-06 11:28:13 +00:00
dd833309bf klacks:get-attribute; dribbling source fix; FAQ 2007-05-01 18:21:40 +00:00
b8ba07a919 + <li>New class <tt>broadcast-handler</tt> as a generalization
+      of the older <tt>sax-proxy</tt>.</li>

+      <li>New class <tt>tapping-source</tt>, 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.</li>

+      Fixed serialize-event to generate
+      start-prefix-mapping and end-prefix-mapping events.  New function
+      map-current-namespace-declarations.</li>
2007-04-22 13:23:54 +00:00
c43b58dd3e klacks xml:base fixes 2007-03-04 21:41:07 +00:00
e0e54c172f xml:base 2007-03-04 21:04:11 +00:00
21aa3df3bd <li>Fixed attributes to carry an lname even without when occurring
without a namespace.</li>

      <li>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.</li>
2007-03-04 18:30:40 +00:00
90a6079532 find-element, find-event 2007-02-18 16:46:32 +00:00
2d9a419c5c new argument :buffering to make-source 2007-02-18 15:27:30 +00:00
2623586d4c klacks fixes 2007-02-18 14:35:14 +00:00
2eec88675a klacks documentation 2007-02-18 11:07:39 +00:00
0596a0e63d klacks parser 2007-02-11 18:21:20 +00:00