On Thu, Dec 04, 2014 at 09:25:38PM +0100, Sascha Ziemann wrote: > It seems to me that the use of //* duplicates the inner 'a' node: > > (begin > (newline) > (pp ((sxpath "//h1[@class='header']//*") > (with-input-from-request > "http://www.imdb.com/title/tt0497465/" > #f html->sxml)))) > > prints > > ((span (@ (class "itemprop") (itemprop "name")) "Vicky Cristina Barcelona") > (span (@ (class "nobr")) > "(" > (a (@ (href "/year/2008/?ref_=tt_ov_inf")) "2008") > ")") > (a (@ (href "/year/2008/?ref_=tt_ov_inf")) "2008")) > > Although there is only one hyper-ref in the HTML code.
Hi Sascha, The sxpath egg is simply a packaged version of what's available from CVS upstream, with as few changes as possible. You might want to report this bug (if that's what it is) on their mailinglist. The project is at http://ssax.sourceforge.net Cheers, Peter -- http://www.more-magic.net _______________________________________________ Chicken-users mailing list Chicken-users@nongnu.org https://lists.nongnu.org/mailman/listinfo/chicken-users