SXPath namespaces

Victor Morilla Padial <[email protected]> Mon, 08 May 2006 23:42:04 +0200
Newsgroups gmane.lisp.scheme.ssax-sxml
Message-ID <[email protected]>
Hi,

Given the following code:

/(define doc
  '(*TOP*
    (@
     (*NAMESPACES*
      (xsd "http://www.w3.org/2001/XMLSchema")))
    (*PI* xml "version=\"1.0\" encoding=\"UTF-8\"")
    (xsd:schema)))

(pretty-print ((sxpath "my:schema" '[(my . 
"http://www.w3.org/2001/XMLSchema")]) doc))
(pretty-print ((sxpath "schema" '[(#f . 
"http://www.w3.org/2001/XMLSchema")]) doc))
(pretty-print ((sxpath "xsd:schema" '[(xsd . 
"http://www.w3.org/2001/XMLSchema")]) doc))
/

I spected the result:
/((my:schema))
((schema))
((xsd:schema))/

But the real result is:
/(())
(())
(())/


What am I doing wrong? What's the correct way to deal with namespaces 
using SXPath

Thanks in advance,

VĂ­ctor Morilla