documentation update
This commit is contained in:
@ -23,6 +23,7 @@
|
||||
only. The old behaviour using pairs of prefix and local names
|
||||
was removed.
|
||||
</p>
|
||||
<!--
|
||||
<p>
|
||||
<strike>
|
||||
fixme: It is unclear to me how namespaces are meant to
|
||||
@ -36,6 +37,7 @@
|
||||
to me how that works in xmls.
|
||||
</strike>
|
||||
</p>
|
||||
-->
|
||||
<p>
|
||||
<div class="def">Function CXML-XMLS:MAKE-XMLS-BUILDER (&key include-default-values include-namespace-uri)</div>
|
||||
Create a SAX handler which builds XMLS list structures. 
|
||||
@ -87,5 +89,31 @@
|
||||
Accessors for xmls node data.
|
||||
</p>
|
||||
<p>
|
||||
<div class="def">Accessor CXML-XMLS:MAKE-XPATH-NAVIGATOR ()</div>
|
||||
Creates a navigator object for use with Plexippus XPath.
|
||||
</p>
|
||||
<p>
|
||||
Note that the navigator object caches parts of the document
|
||||
structure, so when re-using a navigator across XPath evalutions,
|
||||
make sure not to modify the list structure.
|
||||
</p>
|
||||
<p>
|
||||
Example:
|
||||
</p>
|
||||
<pre>CL-USER> (defparameter *test-document*
|
||||
(cxml:parse
|
||||
"<foo a='b'>
|
||||
<a id='1'/> <b id='2'/> <c id='3'/>
|
||||
<a id='4'/> <b id='5'/> <c id='6'/>
|
||||
<a id='7'/> <b id='8'/> <c id='9'/>
|
||||
<last/>
|
||||
</foo>"
|
||||
(cxml-xmls:make-xmls-builder)))
|
||||
*TEST-DOCUMENT*</pre>
|
||||
<pre>CL-USER> (let ((xpath:*navigator* (cxml-xmls:make-xpath-navigator)))
|
||||
(xpath:evaluate "//c[position()=2]|//a[@id='1']"
|
||||
*test-document*))
|
||||
#<XPATH:NODE-SET (a ((id 1))), ... {27C751F1}></pre>
|
||||
<pre>CL-USER> (xpath:all-nodes *)
|
||||
(("a" (("id" "1"))) ("c" (("id" "6"))))</pre>
|
||||
</documentation>
|
||||
|
||||
Reference in New Issue
Block a user