From achambers.home at googlemail.com Tue Oct 16 22:22:22 2007 From: achambers.home at googlemail.com (Andy Chambers) Date: Tue, 16 Oct 2007 23:22:22 +0100 Subject: [s-xml-devel] Webpage example doesn't work Message-ID: Hi, One of the print-xml examples on the webpage doesn't work for me. ? (print-xml '(p "Interesting stuff at " ((a href "http://slashdot.org") "SlashDot")))

Interesting stuff at SlashDot

NIL When I try to run the example above, I get There is no applicable method for the generic function # when called with arguments (NIL). [Condition of type SIMPLE-ERROR] All the other examples work. It looks to be something to do with the namespaces stuff that's been added relatively recently but I haven't been able to figure it out yet. Cheers, Andy From achambers.home at googlemail.com Tue Oct 16 23:14:01 2007 From: achambers.home at googlemail.com (Andy Chambers) Date: Wed, 17 Oct 2007 00:14:01 +0100 Subject: [s-xml-devel] Re: Webpage example doesn't work In-Reply-To: References: Message-ID: On 10/16/07, I wrote: > Hi, > > One of the print-xml examples on the webpage doesn't work for me. > > ? (print-xml '(p "Interesting stuff at " ((a href > "http://slashdot.org") "SlashDot"))) >

Interesting stuff at SlashDot

> NIL > > When I try to run the example above, I get > > There is no applicable method for the generic function > # > when called with arguments > (NIL). > [Condition of type SIMPLE-ERROR] > > All the other examples work. It looks to be something to do with the > namespaces stuff that's been added relatively recently but I haven't > been able to figure it out yet. It seems if you define a get-prefix method specializing on NIL, the example works as expected (defmethod get-prefix ((namespace (eql nil))) "") While we're on the subject of namespaces, how is this mechanism supposed to work? Is there an :sxml syntax for assigning namespaces to elements? Cheers, Andy