> 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  <[email protected]>

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

Reply via email to