From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: kwright@keithdiane.us (Keith Wright) Newsgroups: gmane.lisp.guile.user Subject: Re: sxml-match example from manual fails Date: Sun, 10 Jun 2012 12:08:23 -0400 (EDT) Message-ID: <20120610160823.085CAB4161@fcs17.localdomain> References: NNTP-Posting-Host: plane.gmane.org X-Trace: dough.gmane.org 1339344781 10817 80.91.229.3 (10 Jun 2012 16:13:01 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Sun, 10 Jun 2012 16:13:01 +0000 (UTC) Cc: guile-user@gnu.org To: Aidan Gauland Original-X-From: guile-user-bounces+guile-user=m.gmane.org@gnu.org Sun Jun 10 18:12:56 2012 Return-path: Envelope-to: guile-user@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1Sdkl6-0005fb-47 for guile-user@m.gmane.org; Sun, 10 Jun 2012 18:12:56 +0200 Original-Received: from localhost ([::1]:39262 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Sdkl5-0008Fp-Qh for guile-user@m.gmane.org; Sun, 10 Jun 2012 12:12:55 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:40627) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Sdkgv-0005vN-Qd for guile-user@gnu.org; Sun, 10 Jun 2012 12:08:39 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Sdkgt-0000Dl-Rh for guile-user@gnu.org; Sun, 10 Jun 2012 12:08:37 -0400 Original-Received: from asbnvacz-mailrelay01.megapath.net ([207.145.128.243]:45385) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Sdkgt-00005o-Nj for guile-user@gnu.org; Sun, 10 Jun 2012 12:08:35 -0400 Original-Received: from mail3.sea5.speakeasy.net (mail3.sea5.speakeasy.net [69.17.117.42]) by asbnvacz-mailrelay01.megapath.net (Postfix) with ESMTP id 41F02A703A8 for ; Sun, 10 Jun 2012 12:08:23 -0400 (EDT) Original-Received: (qmail 13624 invoked from network); 10 Jun 2012 16:08:22 -0000 Original-Received: by simscan 1.4.0 ppid: 5828, pid: 6672, t: 0.1702s scanners: clamav: 0.88.2/m:52/d:10739 Original-Received: from unknown (HELO fcs13.keithdiane.us) ([66.92.74.188]) (envelope-sender ) by mail3.sea5.speakeasy.net (qmail-ldap-1.03) with SMTP for ; 10 Jun 2012 16:08:22 -0000 Original-Received: from fcs17.localdomain (fcs17.keithdiane.us [192.168.1.116]) by fcs13.keithdiane.us (Postfix) with ESMTP id 6C24EAF4042; Sun, 10 Jun 2012 12:08:17 -0400 (EDT) Original-Received: by fcs17.localdomain (Postfix, from userid 1000) id 085CAB4161; Sun, 10 Jun 2012 12:08:23 -0400 (EDT) In-reply-to: (message from Aidan Gauland on Sun, 10 Jun 2012 14:19:37 +1200) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) X-Received-From: 207.145.128.243 X-Mailman-Approved-At: Sun, 10 Jun 2012 12:12:51 -0400 X-BeenThere: guile-user@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: General Guile related discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guile-user-bounces+guile-user=m.gmane.org@gnu.org Original-Sender: guile-user-bounces+guile-user=m.gmane.org@gnu.org Xref: news.gmane.org gmane.lisp.guile.user:9497 Archived-At: > 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 Programmer in Chief, Free Computer Shop --- Food, Shelter, Source code. ---