From achambers.home at googlemail.com Fri Aug 3 17:48:52 2007 From: achambers.home at googlemail.com (Andy Chambers) Date: Fri, 3 Aug 2007 18:48:52 +0100 Subject: [s-xml-devel] sxpath implementation Message-ID: Hi List, I've made an xpath implementation for the parse-tree created by s-xml. Its shamelessly copied from Andy Wingo's guile implementation with a few changes to make it work on CL. Documentation and finishing touches will follow shortly but I thought you might like to play with what I've done so far. The main exported function is sxpath, the examples in test-xpath.lisp demonstrate how to use this, as well as how this translates into the lower level functions. I'll happily incorporate any feedback into the code and hope that this might make it into a future release. One idea I thought I might try was to turn sxpath into a macro to improve performance but I'd like to make sure its working correctly first. Some relevent urls: http://www196.pair.com/lisovsky/query/sxpath/ http://www196.pair.com/lisovsky/query/examples/ Cheers, Andy -------------- next part -------------- A non-text attachment was scrubbed... Name: xpath.lisp Type: application/x-extension-lisp Size: 5955 bytes Desc: not available URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: test-xpath.lisp Type: application/x-extension-lisp Size: 3152 bytes Desc: not available URL: From nicky at beta9.be Fri Aug 10 11:58:48 2007 From: nicky at beta9.be (Nicky Peeters) Date: Fri, 10 Aug 2007 13:58:48 +0200 Subject: [s-xml-devel] sxpath implementation In-Reply-To: References: Message-ID: <08FFA687-EC2E-4702-B2DC-76DB1DEC5CED@beta9.be> Hi Andy, Very cool Xpath extension! Sven is currently taking it easy, due to a short stay in hospital. But I'm sure he'll catch up to the list soon ;-) Nicky On 03 Aug 2007, at 19:48, Andy Chambers wrote: > Hi List, > > I've made an xpath implementation for the parse-tree created by s-xml. > Its shamelessly copied from Andy Wingo's guile implementation with a > few changes to make it work on CL. Documentation and finishing > touches will follow shortly but I thought you might like to play with > what I've done so far. > > The main exported function is sxpath, the examples in test-xpath.lisp > demonstrate how to use this, as well as how this translates into the > lower level functions. > > I'll happily incorporate any feedback into the code and hope that this > might make it into a future release. One idea I thought I might try > was to turn sxpath into a macro to improve performance but I'd like to > make sure its working correctly first. > > Some relevent urls: > > http://www196.pair.com/lisovsky/query/sxpath/ > http://www196.pair.com/lisovsky/query/examples/ > > Cheers, > Andy > > > _______________________________________________ > s-xml-devel site list > s-xml-devel at common-lisp.net > http://common-lisp.net/mailman/listinfo/s-xml-devel From achambers.home at googlemail.com Sun Aug 12 06:45:32 2007 From: achambers.home at googlemail.com (Andy Chambers) Date: Sun, 12 Aug 2007 07:45:32 +0100 Subject: [s-xml-devel] Fwd: sxpath implementation In-Reply-To: References: Message-ID: > Documentation and finishing touches will follow shortly but I thought you might like to play > with what I've done so far. So here is a tidied up "patchified" version of the files I attached earlier. This patch should be applied from the root directory of the project and includes the following - provides the sxpath function which returns a function which, when applied to a tree, returns a list of nodes that match the path specified - the file test-xpath.lisp which shows how to use sxpath (and its lower-level operations) - changes to the package definition so that sxpath is exported when one loads s-xml. Happy Hacking, Andy -------------- next part -------------- A non-text attachment was scrubbed... Name: sxml-xpath-impl-and-tests.patch Type: text/x-patch Size: 20799 bytes Desc: not available URL: