From dlichteblau at common-lisp.net Sun Mar 2 17:03:13 2008 From: dlichteblau at common-lisp.net (dlichteblau) Date: Sun, 2 Mar 2008 12:03:13 -0500 (EST) Subject: [cxml-cvs] CVS cxml/doc Message-ID: <20080302170313.BC5E0743BC@common-lisp.net> Update of /project/cxml/cvsroot/cxml/doc In directory clnet:/tmp/cvs-serv6016/doc Modified Files: index.xml xmls-compat.xml Log Message: documentation update --- /project/cxml/cvsroot/cxml/doc/index.xml 2007/12/22 15:24:52 1.22 +++ /project/cxml/cvsroot/cxml/doc/index.xml 2008/03/02 17:03:11 1.23 @@ -48,10 +48,12 @@ Plexippus: XPath 1.0 +
+
+ 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"))))
From dlichteblau at common-lisp.net Sun Mar 23 20:45:55 2008
From: dlichteblau at common-lisp.net (dlichteblau)
Date: Sun, 23 Mar 2008 15:45:55 -0500 (EST)
Subject: [cxml-cvs] CVS cxml/xml
Message-ID: <20080323204555.E990332043@common-lisp.net>
Update of /project/cxml/cvsroot/cxml/xml
In directory clnet:/tmp/cvs-serv25492
Modified Files:
sax-proxy.lisp
Log Message:
fixed sax:unescaped on the broadcast sink
--- /project/cxml/cvsroot/cxml/xml/sax-proxy.lisp 2007/10/21 17:07:23 1.8
+++ /project/cxml/cvsroot/cxml/xml/sax-proxy.lisp 2008/03/23 20:45:55 1.9
@@ -43,6 +43,7 @@
(define-proxy-method sax:start-element (uri lname qname attributes))
(define-proxy-method sax:start-prefix-mapping (prefix uri))
(define-proxy-method sax:characters (data))
+ (define-proxy-method sax:unescaped (data))
(define-proxy-method sax:processing-instruction (target data))
(define-proxy-method sax:end-prefix-mapping (prefix))
(define-proxy-method sax:end-element (namespace-uri local-name qname))