I played with this example in the xpath 3.0 specification:
fn:fold-left(function($a, $b) { $a + $b }, 0, 1 to 5)
I tried to substitute the inline function with the function defined by the 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 I got the error that "the first fold-left parameter cannot be an empty sequence.
Am I doing something wrong or is it impossible?
Thanks in advance.
source share