[Top][All Lists]

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

Re: [SOLVED] Re: sxml: avoiding intermixed text?

From: Aleix Conchillo Flaqué
Subject: Re: [SOLVED] Re: sxml: avoiding intermixed text?
Date: Thu, 13 Jan 2011 12:20:44 +0100
User-agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv: Gecko/20101227 Iceowl/1.0b1 Icedove/3.0.11

On 01/13/2011 11:53 AM, Thien-Thi Nguyen wrote:
I would replace

      (let loop ((node sxml) (result '()))
        (cond ((null? node) result)
              (else (loop (cdr node)
                          (append result (node-fix (car node)))))))


      (map node-fix sxml)

This would only change whitespaces for #nil... but...

(delete #nil (map node-fix sxml))

works solves this.

Thank you very much!


reply via email to

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