From lispercat at gmail.com Wed Jan 5 23:26:45 2011 From: lispercat at gmail.com (Andrei Stebakov) Date: Wed, 5 Jan 2011 18:26:45 -0500 Subject: [xuriella-devel] Looking for a general approach In-Reply-To: <20101203184344.GH18633@radon> References: <7FB1EC68-FC81-4682-AFB7-5A9D5DDE844E@gmail.com> <20101203170042.GF18633@radon> <20101203180153.GG18633@radon> <20101203184344.GH18633@radon> Message-ID: I also found that xpath has it's own way of defining extensions (though those functions are not exported). With xpath extensions (xpath::define-extension) it's easy to create your own helper function to be used like: I couldn't find a way to achieve the same result with xuriella:define-extension-group/xuriella:define-extension-parser/xuriella:define-extension-compiler trinity. I wonder if using xpath extension is the right way to do it for this case? Is there a way to define an extension function in xuriella? Thank you, Andrew On Fri, Dec 3, 2010 at 1:43 PM, David Lichteblau wrote: > Quoting Andrei Stebakov (lispercat at gmail.com): >> Great! Is there any way to pass parameters from XSLT to (princ-to-string ...)? >> You made an example of (princ-to-string pi) which will evaluate pi on >> the lisp side and return the output to XSLT. >> Can we pass some parameters/variables evaluated at XSLT side to lisp >> like (princ-to-string $some-xslt-var)? > > The env and ctx arguments make that possible. > > Take a look at xuriella::compile-avt for inspiration. > > > d. > From lispercat at gmail.com Fri Jan 7 18:32:31 2011 From: lispercat at gmail.com (Andrei Stebakov) Date: Fri, 7 Jan 2011 13:32:31 -0500 Subject: [xuriella-devel] selecting all attributes under a node Message-ID: In the following example: (xuriella:apply-stylesheet " " " ") The output is just Text1. Shouldn't it be "Text1Text2Text3"? Thank you, Andrei From david at lichteblau.com Fri Jan 7 18:50:33 2011 From: david at lichteblau.com (David Lichteblau) Date: Fri, 7 Jan 2011 19:50:33 +0100 Subject: [xuriella-devel] selecting all attributes under a node In-Reply-To: References: Message-ID: <20110107185033.GB15269@radon> Quoting Andrei Stebakov (lispercat at gmail.com): > In the following example: > > (xuriella:apply-stylesheet > " version='1.0'> > > > > > > " > " > > > > > > ") > > The output is just Text1. Shouldn't it be "Text1Text2Text3"? No, the output Xuriella gives is correct. C.f. the specification of value-of and string(). David