xsl-list
[Top] [All Lists]

Re: [xsl] dynamic function invocation

2010-07-29 08:13:24
Martin Honnen wrote:
Andriy Gerasika wrote:
Does XSLT (or Saxon) support dynamic function invocation (something like $funcName() or $$varName in PHP)?

Dynamic template invocation can be done with an extension instruction in Saxon 9 http://www.saxonica.com/documentation/extensions/instructions/call-template.html

And I think dynamic function invocation is just a case of evaluating an expression with http://www.saxonica.com/documentation/extensions/functions/evaluate.html e.g.
  saxon:evaluate(concat($funcName, '()'))

--

        Martin Honnen
        http://msmvps.com/blogs/martin_honnen/

--~------------------------------------------------------------------
XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: <mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--

<Prev in Thread] Current Thread [Next in Thread>