xsl-list
[Top] [All Lists]

Re: [xsl] XPath function for <xsl:apply-templates/>?

2013-11-18 08:42:42
On 18/11/2013 14:25, Christian Mahnke wrote:
I’ve noticed the problem with the dynamic mode setting as well.

It's not really a problem in most cases (many languages don't let the
name of a function call be determined dynamically at all:-) in XSLT you
always have the option of using apply-templates on some node to get
dynamic dispatch, or as there can only be a finite number of modes
defined in the stylesheet, if you want mode to be a parameter to the
function you can just have the body of the function being an xsl:choose
selecting on mode and applying templates in the requested mode.

David



--~------------------------------------------------------------------
XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: <mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--