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:
@ -47,6 +47,12 @@
|
||||
  
|
||||
STP, an alternative to DOM
|
||||
</p>
|
||||
<p>
|
||||
⬗ 
|
||||
<a href="http://common-lisp.net/project/closure/closure-html/">Closure
|
||||
HTML</a>: cxml can be used together with its sister project
|
||||
Closure HTML to convert between HTML and XHTML.
|
||||
</p>
|
||||
|
||||
|
||||
<a name="changes"/>
|
||||
@ -65,6 +71,15 @@
|
||||
</div>
|
||||
<p class="nomargin"><tt>rel-2007-xx-yy</tt></p>
|
||||
<ul class="nomargin">
|
||||
<li>
|
||||
Moved runes into a separate project.
|
||||
</li>
|
||||
<li>
|
||||
Incompatible SAX changes: Added new classes
|
||||
sax:abstract-handler, sax:content-handler, sax:default-handler.
|
||||
Implementations of SAX handlers should now subclass one of
|
||||
these classes.
|
||||
</li>
|
||||
<li>
|
||||
fixed make-source :buffering nil, thanks to Magnus Henoch for
|
||||
the report
|
||||
|
||||
@ -79,13 +79,11 @@
|
||||
<ul>
|
||||
<li>
|
||||
<tt>pathname</tt> -- a Common Lisp pathname.
|
||||
Open the file specified by the pathname and create a source for
|
||||
the resulting stream. See below for information on how to
|
||||
close the stream.
|
||||
Open the file specified by the pathname and parse its
|
||||
contents as an XML document.
|
||||
</li>
|
||||
<li><tt>stream</tt> -- a Common Lisp stream with element-type
|
||||
<tt>(unsigned-byte 8)</tt>. See below for information on how to
|
||||
close the stream.
|
||||
<tt>(unsigned-byte 8)</tt>.
|
||||
</li>
|
||||
<li>
|
||||
<tt>octets</tt> -- an <tt>(unsigned-byte 8)</tt> array.
|
||||
|
||||
@ -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)
|
||||
|
||||
Reference in New Issue
Block a user