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
|
STP, an alternative to DOM
|
||||||
</p>
|
</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"/>
|
<a name="changes"/>
|
||||||
@ -65,6 +71,15 @@
|
|||||||
</div>
|
</div>
|
||||||
<p class="nomargin"><tt>rel-2007-xx-yy</tt></p>
|
<p class="nomargin"><tt>rel-2007-xx-yy</tt></p>
|
||||||
<ul class="nomargin">
|
<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>
|
<li>
|
||||||
fixed make-source :buffering nil, thanks to Magnus Henoch for
|
fixed make-source :buffering nil, thanks to Magnus Henoch for
|
||||||
the report
|
the report
|
||||||
|
|||||||
@ -79,13 +79,11 @@
|
|||||||
<ul>
|
<ul>
|
||||||
<li>
|
<li>
|
||||||
<tt>pathname</tt> -- a Common Lisp pathname.
|
<tt>pathname</tt> -- a Common Lisp pathname.
|
||||||
Open the file specified by the pathname and create a source for
|
Open the file specified by the pathname and parse its
|
||||||
the resulting stream. See below for information on how to
|
contents as an XML document.
|
||||||
close the stream.
|
|
||||||
</li>
|
</li>
|
||||||
<li><tt>stream</tt> -- a Common Lisp stream with element-type
|
<li><tt>stream</tt> -- a Common Lisp stream with element-type
|
||||||
<tt>(unsigned-byte 8)</tt>. See below for information on how to
|
<tt>(unsigned-byte 8)</tt>.
|
||||||
close the stream.
|
|
||||||
</li>
|
</li>
|
||||||
<li>
|
<li>
|
||||||
<tt>octets</tt> -- an <tt>(unsigned-byte 8)</tt> array.
|
<tt>octets</tt> -- an <tt>(unsigned-byte 8)</tt> array.
|
||||||
|
|||||||
@ -291,7 +291,7 @@ Setting this variable has no effect unless both
|
|||||||
nil)
|
nil)
|
||||||
(:method ((handler t) ,@args)
|
(:method ((handler t) ,@args)
|
||||||
(declare (ignore ,@args))
|
(declare (ignore ,@args))
|
||||||
(error "deprecated SAX default method used by a handler ~
|
(warn "deprecated SAX default method used by a handler ~
|
||||||
that is not a subclass of SAX:ABSTRACT-HANDLER ~
|
that is not a subclass of SAX:ABSTRACT-HANDLER ~
|
||||||
or HAX:ABSTRACT-HANDLER")
|
or HAX:ABSTRACT-HANDLER")
|
||||||
nil)
|
nil)
|
||||||
@ -311,6 +311,11 @@ Setting this variable has no effect unless both
|
|||||||
|
|
||||||
(define-event (start-element default-handler)
|
(define-event (start-element default-handler)
|
||||||
(namespace-uri local-name qname attributes)
|
(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))
|
(hax:start-element handler local-name attributes))
|
||||||
|
|
||||||
(define-event (start-prefix-mapping content-handler)
|
(define-event (start-prefix-mapping content-handler)
|
||||||
|
|||||||
Reference in New Issue
Block a user