I was playing with this example in the xpath 3.0 spec:
fn:fold-left(function($a, $b) { $a + $b }, 0, 1 to 5)
I tried to substitute the inline function with a function defined by xsl:function.
<xsl:function name="ki:plus" as="xs:integer*">
<xsl:param name="a" as="xs:integer*">
<xsl:param name="b" as="xs:integer">
<xsl:value-of select="$a + $b">
</xsl:function>
But got the error that "first parameter of fold-left can't be an empty sequence.
Am I doing something wrong or is this not possible?
Thanks in advance.