Menu

#5 Convenience functions and templates for f:apply2

open
nobody
None
5
2008-12-01
2008-12-01
No

The source file func-apply2.xsl doesn't contain the usual convenience functions and templates. Here they are:

<xsl:function name="f:apply2" as="element()">
<f:apply2/>
</xsl:function>

<xsl:template match="f:apply2" mode="f:FXSL">
<xsl:param name="arg1"/>
<xsl:param name="arg2"/>
<xsl:sequence select="f:apply2($arg1, $arg2)"/>
</xsl:template>

<xsl:function name="f:apply2" as="element()">
<xsl:param name="pFunc"/>
<xsl:sequence select="f:curry(f:apply2(), 2, $pFunc)"/>
</xsl:function>

Discussion


Log in to post a comment.