guile-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

can't use variable in sxml-match?


From: nalaginrut
Subject: can't use variable in sxml-match?
Date: Fri, 20 May 2011 09:06:36 +0800

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---




reply via email to

[Prev in Thread] Current Thread [Next in Thread]