Subject: recreate apply-templates using a function
From: Andrew Welch <andrew.j.welch@xxxxxxxxx>
Date: Sun, 12 Feb 2012 13:24:25 +0000
|
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
|