[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] Calling named templates with a variable
I want to call a named template. I don't know what its name is, but I can put the name in a variable. <xsl:variable name="foo" expr="'SomeTemplateName'"/> <xsl:call-template name="$foo"/> With this, XT complains that no template is named "$foo". Same if I use "{$foo}". The spec does not say anything one way or the other on this issue. What's the reason why a variable reference is not allowed here? Is it because a variable's value can can be a node set? Is it because we want people to be able to put '$' in the name of a template? XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
|
PURCHASE STYLUS STUDIO ONLINE TODAY!Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|