Here you go. --daishi CHICKEN (c)2008-2010 The Chicken Team (c)2000-2007 Felix L. Winkelmann Version 4.6.0 linux-unix-gnu-x86 [ manyargs dload ptables ] compiled 2011-01-11 on spirits (Linux)
#;1> (use sxpath htmlprag utils) ; loading /usr/local/chicken-4.6.0/lib/chicken/5/sxpath.import.so ... ; loading /usr/local/chicken-4.6.0/lib/chicken/5/chicken.import.so ... ; loading /usr/local/chicken-4.6.0/lib/chicken/5/scheme.import.so ... ; loading /usr/local/chicken-4.6.0/lib/chicken/5/data-structures.import.so ... ; loading /usr/local/chicken-4.6.0/lib/chicken/5/srfi-1.import.so ... ; loading /usr/local/chicken-4.6.0/lib/chicken/5/srfi-13.import.so ... ; loading /usr/local/chicken-4.6.0/lib/chicken/5/sxpath-lolevel.import.so ... ; loading /usr/local/chicken-4.6.0/lib/chicken/5/extras.import.so ... ; loading /usr/local/chicken-4.6.0/lib/chicken/5/ports.import.so ... ; loading /usr/local/chicken-4.6.0/lib/chicken/5/txpath.import.so ... ; loading /usr/local/chicken-4.6.0/lib/chicken/5/htmlprag.import.so ... ; loading /usr/local/chicken-4.6.0/lib/chicken/5/sxpath.so ... ; loading /usr/local/chicken-4.6.0/lib/chicken/5/sxpath-lolevel.so ... ; loading /usr/local/chicken-4.6.0/lib/chicken/5/txpath.so ... ; loading /usr/local/chicken-4.6.0/lib/chicken/5/htmlprag.so ... ; loading library utils ... #;2> ((sxpath "//table/tr[td[a[contains(@href,'&abc=123&')]]]") (html->sxml "<html><table><tr><td><a href=\"/xxx/yyy/?zzz&abc=123&\">yyy</a></td><tr></table></html>")) () #;3> CHICKEN (c)2008 The Chicken Team (c)2000-2007 Felix L. Winkelmann Version 3.2.0 - linux-unix-gnu-x86 [ manyargs dload ptables applyhook ] SVN rev. 10664 compiled 2008-05-28 on spirits (Linux) #;1> (use sxml-tools htmlprag utils) ; loading /usr/local/chicken-3.2.0/lib/chicken/3/sxml-tools.so ... ; loading /usr/local/chicken-3.2.0/lib/chicken/3/htmlprag.so ... ; loading library utils ... #;2> ((sxpath "//table/tr[td[a[contains(@href,'&abc=123&')]]]") (html->sxml "<html><table><tr><td><a href=\"/xxx/yyy/?zzz&abc=123&\">yyy</a></td><tr></table></html>")) ((tr (td (a (@ (href "/xxx/yyy/?zzz&abc=123&")) "yyy")))) #;3> At Sun, 16 Jan 2011 13:27:41 +0100, Peter Bex wrote: > > On Sun, Jan 16, 2011 at 03:49:41PM +0900, Daishi Kato wrote: > > Hi, > > > > I'm porting one of my projects from chicken-3.2.0 to chicken-4.6.0. > > (And thus found a bug in http-client.) > > > > It seems like the previous sxpath doesn't work on the new one. > > Could anybody help how I can fix this? > > > > The sxpath worked on chicken-3.2.0 is something like the following: > > > > ((sxpath "//table/tr[td[a[contains(@href,'&abc=123&')]]]") x) > > > > On 3.2.0 I used the sxml-tools egg and the sxpath egg on 4.6.0 > > What is the error you get? What is the content you run this > expression on? Can you simplify it to a simple testcase? > > My gut feeling is that the & is maybe wrong. Did you try just '&'? > > Cheers, > Peter > -- > http://sjamaan.ath.cx > -- > "The process of preparing programs for a digital computer > is especially attractive, not only because it can be economically > and scientifically rewarding, but also because it can be an aesthetic > experience much like composing poetry or music." > -- Donald Knuth > > _______________________________________________ > Chicken-users mailing list > [email protected] > http://lists.nongnu.org/mailman/listinfo/chicken-users > > ****************************** > XREA.COM -Free Web Hosting- > http://www.xrea.com/ > ****************************** _______________________________________________ Chicken-users mailing list [email protected] http://lists.nongnu.org/mailman/listinfo/chicken-users
