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.
This commit is contained in:
dlichteblau
2007-10-21 14:16:24 +00:00
parent cdbe1682b7
commit 1c8b1a0ab8
3 changed files with 26 additions and 8 deletions

View File

@ -291,9 +291,9 @@ Setting this variable has no effect unless both
nil)
(:method ((handler t) ,@args)
(declare (ignore ,@args))
(error "deprecated SAX default method used by a handler ~
that is not a subclass of SAX:ABSTRACT-HANDLER ~
or HAX:ABSTRACT-HANDLER")
(warn "deprecated SAX default method used by a handler ~
that is not a subclass of SAX:ABSTRACT-HANDLER ~
or HAX:ABSTRACT-HANDLER")
nil)
(:method ((handler abstract-handler) ,@args)
(declare (ignore ,@args))
@ -311,6 +311,11 @@ Setting this variable has no effect unless both
(define-event (start-element default-handler)
(namespace-uri local-name qname attributes)
(setf attributes
(remove "http://www.w3.org/2000/xmlns/"
attributes
:key #'attribute-namespace-uri
:test #'equal))
(hax:start-element handler local-name attributes))
(define-event (start-prefix-mapping content-handler)