Commit Graph
118 Commits
Author SHA1 Message Date
dlichteblau 1cc473b918 represent base uris as strings, not puri objects 2008-02-08 21:43:12 +00:00
dlichteblau f0bbf4abf0 Use 21 bit characters on Lisp offering them. 2007-12-22 15:24:52 +00:00
dlichteblau 4ffbc14670 new slot omit-xml-declaration-p on sink 2007-12-02 20:56:42 +00:00
dlichteblau 37b4873ee4 fixed DTD serialization bugs, thanks to _3b for the report 2007-11-24 00:04:16 +00:00
dlichteblau 77db951f12 cxml:unescaped, sax:unescaped 2007-11-18 18:43:10 +00:00
dlichteblau a50f1c7b64 fixed xmls compatibility for recent sax changes 2007-11-18 18:43:00 +00:00
dlichteblau aee7890e8d hax:%want-strings-p 2007-10-21 17:07:23 +00:00
dlichteblau 35847cb2de Another HAX fix:
* xml/sax-handler.lisp: Signal a warning in deprecated method,y
        not an error.
2007-10-21 14:43:20 +00:00
dlichteblau 1c8b1a0ab8 More documentation bits and HAX fixes:
* xml/sax-handler.lisp: Remove namespace attributes in
	HAX-to-SAX conversion.  Signal a warning in deprecates methods,
	not an error.
2007-10-21 14:16:24 +00:00
dlichteblau cdbe1682b7 HAX namespace stuff
* xml/sax-handler.lisp (HAX:START-ELEMENT, HAX:END-ELEMENT):
	Declare and undeclare the xhtml namespace on elements called
	"HTML".
2007-10-14 20:19:35 +00:00
dlichteblau 378af1f38a HAX integration buglet
* xml/sax-handler.lisp (HAX:START-DOCUMENT): Write a doctype only
	if a system ID was given.
2007-10-14 19:04:36 +00:00
dlichteblau df50f2547d Fixed (parse xstream ...).
* xml/xml-parse.lisp (PARSE): Call parse-xstream, not
        make-xstream.
2007-10-14 18:40:26 +00:00
dlichteblau 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
dlichteblau 319149507a Fixed time and space usage in cases where entity references
follow each other (thanks to Ivan Shvedunov for the report).

	* xml/xml-parse.lisp (P/CONTENT): Removed useless call to append.
	Use loop instead of tail recursion.
2007-10-03 15:21:56 +00:00
dlichteblau 0c4635bb07 fixed canonical output of processing instructions 2007-08-05 11:16:15 +00:00
dlichteblau 3a37db3e9d fixed the DTD/SAX fix 2007-08-05 11:15:48 +00:00
dlichteblau b0ca8a12da DTD serialization fixes 2007-07-22 19:44:01 +00:00
dlichteblau 5142cfe2b8 DTD/SAX fix 2007-07-22 19:43:27 +00:00
dlichteblau 95b3f65a4b new function cxml:parse 2007-07-07 20:47:38 +00:00
dlichteblau 190f472657 Fixed build on non-Unicode lisps.
Fixed parsing on non-Unicode lisps.
Fixed Unicode detection on OpenMCL.
2007-07-05 20:58:15 +00:00
dlichteblau d9fe9dfd51 new function cxml:doctype 2007-07-01 18:52:26 +00:00
dlichteblau 4e57491ebe removed out-of-date comment 2007-07-01 17:26:04 +00:00
dlichteblau 07a604186a new function unparsed-internal-subset 2007-07-01 17:25:45 +00:00
dlichteblau dd08cc3711 escape % in internal entities
new function unparsed-internal-subset
use " to escape IDs containing '
2007-07-01 17:25:39 +00:00
dlichteblau fb9a2fa002 SCL support (thanks to Douglas Crosher). Includes support for
implementations where URIs are valid namestrings, and a mode
        where normal streams are used instead of xstreams and ystreams
        (albeit both SCL-specific at this point).
2007-06-16 11:27:18 +00:00
dlichteblau ee394c591d XMLS compatibility is not <i>bug-for-bug</i>-compatible with
XMLS any more.  There is now a mode using pairs of local name
        and namespace URI, and a second mode using qualified names
        only.  The old behaviour using pairs of prefix and local names
        was removed.  (Thanks to Douglas Crosher.)
2007-06-16 11:07:58 +00:00
dlichteblau db31b727ca DTC patch-rune
o make-string-sink/utf8, make-character-stream-sink/utf8: these functions
  are not needed when compiling with the :rune-is-character feature.
2007-06-16 10:02:43 +00:00
dlichteblau 5c597c9bce <li>Serialization no longer defaults to canonical form.</li> 2007-06-16 09:42:06 +00:00
dlichteblau 7fa3307ec8 added sax-parser-mixin to broadcast-handler 2007-05-20 09:38:35 +00:00
dlichteblau 41ee5ae24d Added new functions attribute*, unparse-attribute, and macro with-element*,
with-namespace* to the SAX generation wrapper API.
2007-05-01 20:06:59 +00:00
dlichteblau 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
dlichteblau e0e54c172f xml:base 2007-03-04 21:04:11 +00:00
dlichteblau 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
dlichteblau 0596a0e63d klacks parser 2007-02-11 18:21:20 +00:00
dlichteblau aac4cb719c - Define CXML:ATTRIBUTE as a generic function, and a method for integers.
- Define /UTF8 sinks even on Unicode-aware implementations for backward-
  compatibility.  (Undocumented feature.)
2006-12-02 13:21:36 +00:00
dlichteblau c94305e69c fixed the long-standing bug with start tags in :DTD behaviour 2006-09-16 07:52:59 +00:00
dlichteblau ac6d074603 die letzten paar nicht-ascii zeichen raus, macht das leben einfacher 2006-09-10 14:55:29 +00:00
dlichteblau 70fd8ddd7d ANSI conformance fixes 2006-09-10 14:52:44 +00:00
dlichteblau 9126b20cae typo in start-element docstring 2006-09-09 10:06:17 +00:00
dlichteblau 1fa6794e81 Sonderzeichen raus 2006-08-28 13:41:41 +00:00
dlichteblau 8f2254d820 namespace fixes 2006-08-20 14:59:34 +00:00
dlichteblau 111b5db45a new function parse-empty-document 2006-08-20 13:58:30 +00:00
dlichteblau 58307a7cbd patch by Nathan Bird: [cxml-devel] characters.lisp improvements 2006-08-20 11:56:11 +00:00
dlichteblau ada9fb8e7b set up a stream name in parse-rod for circularity detection
(thanks to Donavon Keithley for the report)
2006-05-18 10:08:36 +00:00
dlichteblau ac1089719b fixed cxml-xmls:map-node, thanks to Kim Minh Kaplan for the report 2006-05-15 21:57:47 +00:00
dlichteblau 13675fab67 fixed CDATA serialization, thanks to Donavon Keithley 2006-05-05 09:05:22 +00:00
dlichteblau 4368c972a8 relative dateinamen absolutifizieren, damit wir sie in entity urls mergen
koennen (thanks to Holger Schauer for the report)
2006-03-20 12:42:26 +00:00
dlichteblau 0b361f3908 destructuring-bind aus with-element raus 2006-02-17 12:53:19 +00:00
dlichteblau acfbb0a612 catalog fixes and workarounds 2006-01-23 21:49:42 +00:00
dlichteblau 08e7c8353c indentation fixes for unicode ports
(thanks to Nathan Bird)
2006-01-23 21:48:27 +00:00