Subject: Re: [xsl] dynamic variable name/implementation question|
From: Dimitre Novatchev <dnovatchev@xxxxxxxxx>
Date: Fri, 26 Aug 2005 06:45:51 +1000
On 8/26/05, Mike Schinkel <mikes@xxxxxxxxx> wrote: > It is possible to do that without having to manually trigger the process > of both, or to have to write a program in another language to do that? > > IOW, can an XSLT processor generate and XSLT file and then launch > another transform recursively? > No, one has to do this manually or through an extension. However, one can always create new functions dynamically by using Higher Order Functions (HOF) and such mechanisms as functional composition, partial application (currying), returning a function from another function. Examples of these techniques can be found at: http://fxsl.sourceforge.net/articles/PartialApps/Partial%20Applications.h tml and http://www.mulberrytech.com/Extreme/Proceedings/html/2003/Novatchev01/ EML2003Novatchev01.html Cheers, Dimitre Novatchev.