<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>
This commit is contained in:
dlichteblau
2007-03-04 18:30:40 +00:00
parent 818cc0f492
commit 21aa3df3bd
7 changed files with 100 additions and 23 deletions

View File

@ -1,4 +1,5 @@
all: dom.html index.html installation.html klacks.html quickstart.html sax.html xmls-compat.html
%.html: %.xml html.xsl
xsltproc html.xsl $< >$@
xsltproc html.xsl $< >$@.tmp
mv $@.tmp $@

View File

@ -50,6 +50,15 @@
<a name="changes"/>
<h2>Recent Changes</h2>
<p class="nomargin"><tt>rel-2007-xx-yy</tt></p>
<ul class="nomargin">
<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>
</ul>
<p class="nomargin"><tt>rel-2007-02-18</tt></p>
<ul class="nomargin">
<li>New StAX-like parser interface.</li>

View File

@ -10,11 +10,7 @@
<li>
<div>
Anoncvs (<a href="http://common-lisp.net/cgi-bin/viewcvs.cgi/cxml/?cvsroot=cxml">browse</a>):
<pre>$ export CVSROOT=:pserver:anonymous@common-lisp.net:/project/cxml/cvsroot
$ cvs login
Logging in to :pserver:anonymous@common-lisp.net:2401/project/cxml/cvsroot
CVS password: anonymous
$ cvs co cxml</pre>
<pre>cvs -d :pserver:anonymous:anonymous@common-lisp.net:/project/cxml/cvsroot co cxml</pre>
</div>
</li>
</ul>

View File

@ -231,6 +231,32 @@
namespace matches. Return values like <tt>peek</tt> or NIL if no
such event was found.
</p>
<p>
<div class="def">Condition KLACKS:KLACKS-ERROR (xml-parse-error)</div>
The condition class signalled by <tt>expect</tt>.
</p>
<p>
<div class="def">Function KLACKS:EXPECT (source key &amp;optional
value1 value2 value3)</div>
Assert that the current event is equal to (key value1 value2
value3). (Ignore <i>value</i> arguments that are NIL.) If so,
return it as multiple values. Otherwise signal a
<tt>klacks-error</tt>.
</p>
<p>
<div class="def">Function KLACKS:SKIP (source key &amp;optional
value1 value2 value3)</div>
<tt>expect</tt> the specific event, then <tt>consume</tt> it.
</p>
<p>
<div class="def">Macro KLACKS:EXPECTING-ELEMENT ((fn source
&amp;optional lname uri) &amp;body body</div>
Assert that the current event matches (:start-element uri lname).
(Ignore <i>value</i> arguments that are NIL) Otherwise signal a
<tt>klacks-error</tt>.
Evaluate <tt>body</tt> as an implicit progn. Finally assert that
the remaining event matches (:end-element uri lname).
</p>
<a name="klacksax"/>
<h3>Bridging Klacks and SAX</h3>