Well, first of all reflection is only reflection, and not necessarily includes on-the-fly code generation.
Anyway some sort of such is available via dyn:evaluate EXSLT extension function, which allows to evaluate dynamically generated XPath expressions, but AFAIK XSL WG decided not to include such functionality to XSLT/XPath 2.0 edition to keep XSLT strongly compiled language. |