[plt-scheme] Problem with sxml.plt

From: Ralf Seliger (admin at kreidestaub.de)
Date: Sat Dec 5 11:41:45 EST 2009


I've started to play around with the SXML-package from Planet, and right 
away I ran into problems. I'd like to extract all the text from an SXML 
document using the procedure sxml:text.

Here is the code

(require (planet lizorkin/sxml:2:1/sxml))

(define doc
   '(*TOP (html (head (title "My Title"))
                (body (p "My Text")))))

(sxml:text doc)

This returns the empty string "" while according to the documentation I 
would expect something like "My Title My Text". What am I missing?

Ralf Seliger

Posted on the users mailing list.