[XSL-LIST Mailing List Archive Home] [By Thread] [By Date]

Re: [xsl] dynamic function invocation


Subject: Re: [xsl] dynamic function invocation
From: Martin Honnen <Martin.Honnen@xxxxxx>
Date: Thu, 29 Jul 2010 15:13:05 +0200

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/


Current Thread
Keywords