From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: nalaginrut Newsgroups: gmane.lisp.guile.devel Subject: Re: can't use variable in sxml-match? Date: Wed, 01 Jun 2011 07:56:04 +0800 Organization: HFG Message-ID: <1306886164.2942.8.camel@Renee-desktop> References: <8762oqedgs.fsf@gnu.org> Reply-To: NalaGinrut@gmail.com NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 7bit X-Trace: dough.gmane.org 1306886189 996 80.91.229.12 (31 May 2011 23:56:29 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Tue, 31 May 2011 23:56:29 +0000 (UTC) Cc: guile-devel@gnu.org To: Ludovic =?ISO-8859-1?Q?Court=E8s?= Original-X-From: guile-devel-bounces+guile-devel=m.gmane.org@gnu.org Wed Jun 01 01:56:25 2011 Return-path: Envelope-to: guile-devel@m.gmane.org Original-Received: from lists.gnu.org ([140.186.70.17]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1QRYnQ-0001aL-UO for guile-devel@m.gmane.org; Wed, 01 Jun 2011 01:56:25 +0200 Original-Received: from localhost ([::1]:54659 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QRYnQ-00039b-7W for guile-devel@m.gmane.org; Tue, 31 May 2011 19:56:24 -0400 Original-Received: from eggs.gnu.org ([140.186.70.92]:39431) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QRYnI-00039O-Ew for guile-devel@gnu.org; Tue, 31 May 2011 19:56:17 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1QRYnH-0006GO-OQ for guile-devel@gnu.org; Tue, 31 May 2011 19:56:16 -0400 Original-Received: from mail-pv0-f169.google.com ([74.125.83.169]:36061) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QRYnG-0006Fn-9B; Tue, 31 May 2011 19:56:14 -0400 Original-Received: by pvc12 with SMTP id 12so2779480pvc.0 for ; Tue, 31 May 2011 16:56:12 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:subject:from:reply-to:to:cc:in-reply-to :references:content-type:organization:date:message-id:mime-version :x-mailer:content-transfer-encoding; bh=L2CZ2VwZSrxrCkY/1hCJ9qw2ZQssV8/E2hBHtUjd/pE=; b=iukiO0FTvn5rJ1sIjcRYYwHAAMKDrqQrk5FstXV5+LlnfiZzfv/mC+6O5UIr1ajfbH sbEZRGrjBOQtAmcA6BLDOcK/DKSYOsCLCBQyzVTiVNLeJsyQIlVEk0NZiv/925osyBC1 /UPFoitvXdOA72ecMfIYrPg7xIsIlz5+AUuBQ= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=subject:from:reply-to:to:cc:in-reply-to:references:content-type :organization:date:message-id:mime-version:x-mailer :content-transfer-encoding; b=TLsg3SwNXVg7WingM3D3Z53ecH2hPz2lnN+d8Suf+Bz0kvyK7P32Hbwisj4VBIby9Z PsnTUrsyHe7ivny2aVbm5UWrlLvpa67t8a5N/S7bDGWq5myA2gkrcaFF0EYM8sdaVt9t EE4BerCRrdY7mY+iSk6VtWa/PCDLuL9zyCLl0= Original-Received: by 10.68.49.167 with SMTP id v7mr2278889pbn.122.1306886172840; Tue, 31 May 2011 16:56:12 -0700 (PDT) Original-Received: from [192.168.100.100] ([183.15.194.37]) by mx.google.com with ESMTPS id p5sm469395pbd.28.2011.05.31.16.56.08 (version=SSLv3 cipher=OTHER); Tue, 31 May 2011 16:56:11 -0700 (PDT) In-Reply-To: <8762oqedgs.fsf@gnu.org> X-Mailer: Evolution 2.28.3 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 2) X-Received-From: 74.125.83.169 X-BeenThere: guile-devel@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: "Developers list for Guile, the GNU extensibility library" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guile-devel-bounces+guile-devel=m.gmane.org@gnu.org Original-Sender: guile-devel-bounces+guile-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.lisp.guile.devel:12560 Archived-At: > Hello, > > Ian Price skribas: > > > Just a note to say that we found a solution to nalaginrut's problem on IRC. > > Great. What was the problem? > > Ludo'. > > well~let me repeat it in brief: ===============Begin=============== (lambda (my-pattern) (sxml-match cl [(my-pattern (@ (type ,tv)) ,cv) ............... ===============End=============== I want to use a variable to be the tag-symbol in sxml-match. But we found it impossible in IRC discussion, because the sxml-match syntax definition said this tag-symbol must be a already-known-symbol. So there's some generalize problem. Ian thought a simple approach to solve this without modify the sxml-match code. -- GNU Powered it GPL Protected it GOD Blessed it HFG - NalaGinrut --hacker key-- v4sw7CUSMhw6ln6pr8OSFck4ma9u8MLSOFw3WDXGm7g/l8Li6e7t4TNGSb8AGORTDLMen6g6RASZOGCHPa28s1MIr4p-x hackerkey.com ---end key---