chicken-users
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Chicken-users] Need help on sxpath/txpath


From: Peter Bex
Subject: Re: [Chicken-users] Need help on sxpath/txpath
Date: Fri, 28 Jan 2011 15:34:09 +0100
User-agent: Mutt/1.4.2.3i

On Fri, Jan 28, 2011 at 11:27:26PM +0900, Daishi Kato wrote:
> Hi,
> 
> I digged into the problem a little more and found something.
> 
> In 4.6.0, this is somewhat working:
> #;24> ((sxpath "//table/tr[td[a[contains(href,'&abc=123&')]]]") 
> (html->sxml "<html><table><tr><td><a 
> href=\"/xxx/yyy/?zzz&amp;abc=123&amp;\">yyy</a></td><tr></table></html>"))
> ((tr (td (a (@ (href "/xxx/yyy/?zzz&amp;abc=123&amp;")) "yyy"))))
> 
> So, I replaced @href with href.
> Is it correct? Maybe not.
> I assume the sxpath egg is incorrect.
> 
> Can anybody tell if this is a chicken-specific problem, or
> of sxml-tools at sourceforge?

It probably is not a chicken-specific problem because the sxpath
egg includes an unmodified copy of SSAX.

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



reply via email to

[Prev in Thread] Current Thread [Next in Thread]