guile-user
[Top][All Lists]
Advanced

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

Re: Whitespace in sxml


From: Mark H Weaver
Subject: Re: Whitespace in sxml
Date: Mon, 04 Feb 2013 16:42:06 -0500
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.2 (gnu/linux)

Hi Mark,

Mark Witmer <address@hidden> writes:
> I've been doing some work using the (sxml simple) module, and I'm
> wondering what to do about whitespace. If I evaluate this
> expression:
>
> (with-input-from-string 
> "<test>
>   <el>VALUE</el>
>   <el>VALUE</el>
> </test>" (lambda () (xml->sxml)))
>
> I get this result:
>
> (*TOP* (test "\n  " (el "VALUE") "\n  " (el "VALUE") "\n"))
>
> Those "\n " strings mess up the matching I'm doing with sxml-match. Does
> anyone know if there's something in the ssax modules in the standard
> library that would let me create a parser that ignores insignificant
> whitespace?

Andy Wingo added this feature about one week ago.  It'll be in 2.0.8.
In the meantime, it's in the stable-2.0 branch of the git repository.

  http://lists.gnu.org/archive/html/guile-devel/2013-01/msg00249.html

> I decided I want to use xcb for my window manager, so I'm implementing a
> language in guile that reads the xml files xcb uses to describe the X
> protocol and creates bindings for it.

Sounds great!  Thanks for working on this :)

     Mark



reply via email to

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