xsl-list
[Top] [All Lists]

[xsl] recreate apply-templates using a function

2012-02-12 07:24:37
If you needed to call apply-templates using a function call (say as
part of an xpath) any reason why this wouldn't be fine:

<xsl:function name="f:apply-templates" as="node()*">
    <xsl:param name="context" as="node()*"/>
    <xsl:apply-templates select="$context"/>
</xsl:function>

with:

<xsl:sequence select="f:apply-templates(child::node())"/>

(ignoring modes and params etc)

Seems ok to me...


-- 
Andrew Welch
http://andrewjwelch.com

--~------------------------------------------------------------------
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>
--~--

<Prev in Thread] Current Thread [Next in Thread>