From c5dbf00ef6ffb4f6b5df8fb39f116af28f9e6b09 Mon Sep 17 00:00:00 2001
From: dlichteblau
Date: Sun, 2 Mar 2008 17:03:11 +0000
Subject: [PATCH] documentation update
---
doc/index.xml | 8 +++++++-
doc/xmls-compat.xml | 28 ++++++++++++++++++++++++++++
2 files changed, 35 insertions(+), 1 deletion(-)
diff --git a/doc/index.xml b/doc/index.xml
index bf03985..8823f09 100644
--- a/doc/index.xml
+++ b/doc/index.xml
@@ -48,10 +48,12 @@
Plexippus:
XPath 1.0
+
Closure
HTML:
@@ -76,10 +78,14 @@
New sink slot omit-xml-declaration-p; functions cxml:unescaped
and sax:unescaped.
+
+ Added XPath support to the XMLS compatibility model.
+
Fixed various DTD serialization bugs. Fixed xmls compatibility
bugs. Fixed variable names in with-source. Fixed
- klacks-error export.
+ klacks-error export. Consistently use strings as base URIs.
+ Fixed PARSE for non-file-streams.
Function CXML-XMLS:MAKE-XMLS-BUILDER (&key include-default-values include-namespace-uri)
Create a SAX handler which builds XMLS list structures.
@@ -87,5 +89,31 @@
Accessors for xmls node data.
+
Accessor CXML-XMLS:MAKE-XPATH-NAVIGATOR ()
+ Creates a navigator object for use with Plexippus XPath.
+
+ 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.
+
+
+ Example:
+
+ 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*
+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}>
+CL-USER> (xpath:all-nodes *)
+(("a" (("id" "1"))) ("c" (("id" "6"))))