Convenience functions and templates for f:apply2
Status: Beta
Brought to you by:
dnovatchev
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>