[xuriella-devel] Looking for a general approach
Andrei Stebakov
lispercat at gmail.com
Fri Dec 3 16:36:16 UTC 2010
I looked into the extension functions and it looks like you can only
define them in terms of XSLT language itself. I couldn't find a way to
use external (lisp) functions for that purpose.
On Thu, Dec 2, 2010 at 5:06 PM, Raymond Wiker <rwiker at gmail.com> wrote:
> It is possible to define "xslt extension functions" and "xslt extension elements", which you can then use from your xsl templates. I'm pretty sure that xuriella supports this (I may even have used it :-)
>
> You'll have to test whether xuriella is fast enough for your purposes - if not, it may be possible to use other XSLT processors from Lisp (I'm actually using the .NET classes, via RDNZL, to good effect).
>
> On Dec 2, 2010, at 21:55 , Andrei Stebakov wrote:
>
>> Hi
>>
>> Recently I've been trying to create some sort of system which
>> generates the web site content on the fly based on a single XML file.
>> The XML file would contain the site structure (tree of pages, some of
>> them are dynamically generated based on lisp functions, or
>> html-template functions). I hit the point when the system became
>> complex enough and I thought that I was most likely "inventing the
>> bicycle". The XML file looks like a tree of rules based on the regex
>> matching of the page names.
>> I found XSLT as something very close to what I am trying to do and it
>> took me to Xuriella XSLT web page.
>> Since I only scratched the surface with XPath, my question is this.
>> Is it possible to put lisp defined function in your xsl file?
>> I mean if XSLT parser sees a construct like (I am just improvising)
>> <xsl:function some-lisp-function="arg1 arg2 arg3"/>
>> then a lisp function (some-lisp-function arg1 arg2 arg3) would be called?
>> Does XSLT/XPath support such concept or it only uses some built in functions?
>> Does XSLT look like a good tool for such kind of web development?
>>
>> Thank you,
>> Andrei
>>
>> _______________________________________________
>> xuriella-devel mailing list
>> xuriella-devel at common-lisp.net
>> http://common-lisp.net/cgi-bin/mailman/listinfo/xuriella-devel
>
>
More information about the xuriella-devel
mailing list