>>>>> "Joseph" == Joseph Kesselman <[EMAIL PROTECTED]> writes:
>> I'm looking for a way to call a template with a variable name or >> mode. Joseph> According to the XSLT spec, the values of those attributes Joseph> are not Attribute Value Templates -- they're literal Joseph> QNames. Hence, variable substitution or other expression Joseph> evaluation are not available. Joseph> Your best best seems to be to use xsl:if or xsl:choose to Joseph> test the value of the variable and issue the corresponding Joseph> version of the call or apply. Joseph> (It'd probably be possible to write a Xalan extension Joseph> function which retrieved and executed a template selected by Joseph> computed name. I'm not convinced that would be a Good Idea; Joseph> it'd mean your stylesheet would run _ONLY_ on Xalan and Joseph> _ONLY_ if this extension was present. But if you really Joseph> can't solve the problem any other way...) But it would give you the ability to write first class functions. I tried using XSLT for a large transformation pipeline a while back. But without first class functions it's very hard to do polymorphism. Phil
