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.


_______________________________________________
Chicken-users mailing list
[email protected]
https://lists.nongnu.org/mailman/listinfo/chicken-users

Reply via email to