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: can't use variable in sxml-match? Date: Fri, 20 May 2011 09:06:36 +0800 Organization: HFG Message-ID: <1305853596.1981.13.camel@Renee-desktop> 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 1305853621 12360 80.91.229.12 (20 May 2011 01:07:01 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Fri, 20 May 2011 01:07:01 +0000 (UTC) To: guile-devel Original-X-From: guile-devel-bounces+guile-devel=m.gmane.org@gnu.org Fri May 20 03:06:53 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 1QNEB2-0003Ky-W3 for guile-devel@m.gmane.org; Fri, 20 May 2011 03:06:53 +0200 Original-Received: from localhost ([::1]:43270 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QNEB2-0005F6-5y for guile-devel@m.gmane.org; Thu, 19 May 2011 21:06:52 -0400 Original-Received: from eggs.gnu.org ([140.186.70.92]:39799) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QNEAz-0005F0-8g for guile-devel@gnu.org; Thu, 19 May 2011 21:06:50 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1QNEAx-0007Pz-Pz for guile-devel@gnu.org; Thu, 19 May 2011 21:06:49 -0400 Original-Received: from mail-pv0-f169.google.com ([74.125.83.169]:47955) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QNEAx-0007Pv-Ky for guile-devel@gnu.org; Thu, 19 May 2011 21:06:47 -0400 Original-Received: by pvc12 with SMTP id 12so1982834pvc.0 for ; Thu, 19 May 2011 18:06:46 -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:content-type :organization:date:message-id:mime-version:x-mailer :content-transfer-encoding; bh=ZyptAaaQB/4lC6FRmwKRbUlPxqB9ZLTk9K2bWg8yU/0=; b=BushPz5vmvGIxquotTNcnTg2Z/VydMkUTz4BTA8wMcCnsmznUHfqAKqKfaw7p7OzRx QtTM4f5CEMaT1Vq3MhrOIj3gzbkRKQ2yxhvO6Ba3sPl/8UTSOuEubZ4lOcPeQDjO/5if oCIupHPUs2Uq+XkjaH+wTKoY33hBbOcv3GftY= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=subject:from:reply-to:to:content-type:organization:date:message-id :mime-version:x-mailer:content-transfer-encoding; b=v0BAnnF+PQk/5lMa3lHY8EI5gpL+p88ypcxObvfb/WH/kQXthtzA6eBTn+SEs5nQ4S 3B9SsXmMf+kIrbHqykH0VffspxPUPxKkje7TswDMm1V0C6tyABDk68Z6P2ZnERuR3nc6 lohdESJLJztlgBpJUBAYQYnvEPV/xPZQ1B4q0= Original-Received: by 10.142.161.19 with SMTP id j19mr2303051wfe.420.1305853606557; Thu, 19 May 2011 18:06:46 -0700 (PDT) Original-Received: from [192.168.100.100] ([183.15.158.157]) by mx.google.com with ESMTPS id w14sm2771574wfh.20.2011.05.19.18.06.42 (version=SSLv3 cipher=OTHER); Thu, 19 May 2011 18:06:45 -0700 (PDT) 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:12505 Archived-At: hi guys! I got a problem when I using sxml-match. Let me describe it more briefly: ================Begin================= (sxml-match cl [(http://www.w3.org/2005/Atom:content (@ (type ,tv)) ,cv) ...do something... [,otherwise #f]) ===============End================== As you see, I must write "content" with the namespace for some reason. But I want a more generic solution ,or I must change source code when namespace changes. Like: ===============Begin=============== (lambda (mypattern) (sxml-match cl [(,my-pattern (@ (type ,tv)) ,cv) ............... ===============End=============== I can't substitute 'http://www.w3.org/2005/Atom:content by a variable, say ,mypattern. It spews a lot of error message. Is it a bug or I missed something? -- GNU Powered it GPL Protected it GOD Blessed it HFG - NalaGinrut --hacker key-- v4sw7CUSMhw6ln6pr8OSFck4ma9u8MLSOFw3WDXGm7g/l8Li6e7t4TNGSb8AGORTDLMen6g6RASZOGCHPa28s1MIr4p-x hackerkey.com ---end key---