From lispercat at gmail.com Wed Jan 5 23:20:47 2011 From: lispercat at gmail.com (Andrei Stebakov) Date: Wed, 5 Jan 2011 18:20:47 -0500 Subject: [plexippus-xpath-devel] Internal functions Message-ID: I wonder why functions like define-extension define-xpath-function/lazy define-xpath-function/eager define-xpath-function/single-type are not exported? Does it mean a user should use some other way to define extensions? Thank you, Andrew From lispercat at gmail.com Fri Jan 7 16:06:34 2011 From: lispercat at gmail.com (Andrei Stebakov) Date: Fri, 7 Jan 2011 11:06:34 -0500 Subject: [plexippus-xpath-devel] function-available doesn't find an extension function Message-ID: Hi If I define a function like: (xpath::define-extension func "http://www.somedomain.com/func") (xpath::define-xpath-function/lazy func test-func (arg1) #'(lambda (ctx) (funcall arg1 ctx))) or (xpath::define-xpath-function/eager func test-func2 (arg1 arg2) (concatenate 'string arg1 " " arg2)) Later in xls when I test the test fails. The function itself works well in xls. Is it expected behavior? Thank you, Andrew From david at lichteblau.com Fri Jan 7 18:52:50 2011 From: david at lichteblau.com (David Lichteblau) Date: Fri, 7 Jan 2011 19:52:50 +0100 Subject: [plexippus-xpath-devel] function-available doesn't find an extension function In-Reply-To: References: Message-ID: <20110107185250.GA10661@radon> Quoting Andrei Stebakov (lispercat at gmail.com): > Later in xls when I test test="function-available('func:test-func')"> the test fails. > The function itself works well in xls. Is it expected behavior? Well, if a function works but isn't advertised by function-available, that sounds like a bug. Do you have a self-contained test caes? Thanks d. From lispercat at gmail.com Fri Jan 7 21:25:01 2011 From: lispercat at gmail.com (Andrei Stebakov) Date: Fri, 7 Jan 2011 16:25:01 -0500 Subject: [plexippus-xpath-devel] function-available doesn't find an extension function In-Reply-To: <20110107185250.GA10661@radon> References: <20110107185250.GA10661@radon> Message-ID: (xpath::define-extension func "http://www.test.com/func") (xpath::define-xpath-function/eager func test-func (arg1 arg2) (concatenate 'string arg1 " " arg2)) (xuriella:apply-stylesheet " test succeeded: test failed: " "") On Fri, Jan 7, 2011 at 1:52 PM, David Lichteblau wrote: > Quoting Andrei Stebakov (lispercat at gmail.com): >> Later in xls when I test > test="function-available('func:test-func')"> the test fails. >> The function itself works well in xls. Is it expected behavior? > > Well, if a function works but isn't advertised by function-available, > that sounds like a bug. ?Do you have a self-contained test caes? > > Thanks > d. > From lispercat at gmail.com Wed Jan 12 20:24:48 2011 From: lispercat at gmail.com (Andrei Stebakov) Date: Wed, 12 Jan 2011 15:24:48 -0500 Subject: [plexippus-xpath-devel] How to output un-escaped content using extension functions? Message-ID: If you execute the sample below: (progn (xpath::define-extension func "http://www.test.com/func") (xpath::define-xpath-function/eager func test-func (arg1 arg2) (concatenate 'string "" arg1 " " arg2 "")) (xuriella:apply-stylesheet " " "")) It'll give you " <content>one two</content>" What can I do to prevent tag from being escaped? Thank you, Andrei From david at lichteblau.com Wed Jan 12 21:07:02 2011 From: david at lichteblau.com (David Lichteblau) Date: Wed, 12 Jan 2011 22:07:02 +0100 Subject: [plexippus-xpath-devel] How to output un-escaped content using extension functions? In-Reply-To: References: Message-ID: <20110112210702.GC15269@radon> Quoting Andrei Stebakov (lispercat at gmail.com): > If you execute the sample below: [...] > [...] > > It'll give you > " > <content>one two</content>" > > What can I do to prevent tag from being escaped? d. From lispercat at gmail.com Wed Jan 12 21:18:46 2011 From: lispercat at gmail.com (Andrei Stebakov) Date: Wed, 12 Jan 2011 16:18:46 -0500 Subject: [plexippus-xpath-devel] How to output un-escaped content using extension functions? In-Reply-To: <20110112210702.GC15269@radon> References: <20110112210702.GC15269@radon> Message-ID: Thanks! I was trying unescaped-value-of before, but for some reason the compiler says "undefined instruction". Andrei On Wed, Jan 12, 2011 at 4:07 PM, David Lichteblau wrote: > Quoting Andrei Stebakov (lispercat at gmail.com): >> If you execute the sample below: > [...] >> ? ? ? ? > [...] >> >> It'll give you >> " >> <content>one two</content>" >> >> What can I do to prevent tag from being escaped? > > > > > d. >