unofficial mirror of guile-devel@gnu.org 
 help / color / mirror / Atom feed
From: nalaginrut <nalaginrut@gmail.com>
To: "Ludovic Courtès" <ludo@gnu.org>
Cc: guile-devel@gnu.org
Subject: Re: can't use variable in sxml-match?
Date: Wed, 01 Jun 2011 07:56:04 +0800	[thread overview]
Message-ID: <1306886164.2942.8.camel@Renee-desktop> (raw)
In-Reply-To: <8762oqedgs.fsf@gnu.org>

> Hello,
> 
> Ian Price <ianprice90@googlemail.com> 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---




  reply	other threads:[~2011-05-31 23:56 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-05-20  3:55 can't use variable in sxml-match? Ian Price
2011-05-20  5:17 ` nalaginrut
2011-05-31 22:01 ` Ludovic Courtès
2011-05-31 23:56   ` nalaginrut [this message]
  -- strict thread matches above, loose matches on Subject: below --
2011-05-20  1:06 nalaginrut
2011-05-20  2:26 ` nalaginrut

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=1306886164.2942.8.camel@Renee-desktop \
    --to=nalaginrut@gmail.com \
    --cc=guile-devel@gnu.org \
    --cc=ludo@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).