I don\'t know if it\'s possible, but I\'m wondering how to do it...
Let\'s say we have the following XSL:
Bla bla
I think I had more or less the same problem as you. I had an "outer" template and wanted to call a different "inner" template depending on some variable set at run-time. I found your question by Googling for a way to have a dynamic . I solved it by using instead, as follows.
The input XML (generated at run-time) contains something along the lines of:
The XSL in the "outer" template has:
(The select="template" in this apply-templates refers to the tag in the input XML)
And finally the "inner" template, which I wanted to include as a result of the value of the name attribute in my XML, looks like:
(Again, the match="template[@name='xyz']" refers to the previous select="template" and in turn to the tag and its name attribute in the input XML)
In this way I can have a dynamically "called" template simply by controlled from my input XML.
This might not be the same problem as you are trying to solve but I think it's pretty close, and much simpler than the FSXL solutions mentioned elsewhere on this page.