From: kwright@keithdiane.us (Keith Wright)
To: Aidan Gauland <aidalgol@no8wireless.co.nz>
Cc: guile-user@gnu.org
Subject: Re: sxml-match example from manual fails
Date: Sun, 10 Jun 2012 12:08:23 -0400 (EDT) [thread overview]
Message-ID: <20120610160823.085CAB4161@fcs17.localdomain> (raw)
In-Reply-To: <jr107i$1j8$1@dough.gmane.org> (message from Aidan Gauland on Sun, 10 Jun 2012 14:19:37 +1200)
> 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 <kwright@free-comp-shop.com>
Programmer in Chief, Free Computer Shop <http://www.free-comp-shop.com>
--- Food, Shelter, Source code. ---
next prev parent reply other threads:[~2012-06-10 16:08 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-06-10 2:19 sxml-match example from manual fails Aidan Gauland
2012-06-10 16:08 ` Keith Wright [this message]
2012-06-12 15:53 ` Ludovic Courtès
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.gnu.org/software/guile/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20120610160823.085CAB4161@fcs17.localdomain \
--to=kwright@keithdiane.us \
--cc=aidalgol@no8wireless.co.nz \
--cc=guile-user@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).