guile-user
[Top][All Lists]
Advanced

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

Re: sxml-match example from manual fails


From: Keith Wright
Subject: Re: sxml-match example from manual fails
Date: Sun, 10 Jun 2012 12:08:23 -0400 (EDT)

> I'm trying to figure out how to use sxml-match, so I tried an example
> from the Guile manual:
> https://www.gnu.org/software/guile/manual/html_node/sxml_002dmatch.html
> 
> "The example below illustrates the pattern matching of an XML element:
> 
>      (sxml-match '(e (@ (i 1)) 3 4 5)
>        [(e (@ (i ,d)) ,a ,b ,c) (list d a b c)]
>        [,otherwise #f])
> 
> So, can someone tell me whether there's an error in the manual?

I don't have the manual handy, but surely that
should be a backquote "`" rather than a quote "'".

That is change:

>      (sxml-match '(e (@ (i 1)) 3 4 5)

to

>      (sxml-match `(e (@ (i 1)) 3 4 5)

-- 
     -- Keith Wright  <address@hidden>

Programmer in Chief, Free Computer Shop <http://www.free-comp-shop.com>
         ---  Food, Shelter, Source code.  ---



reply via email to

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