Dimitre
the question came up in a XML Schema 1.1 assertion where only xPath 2.0
expressions are allowed.
>> Dimitre, yes, this is nice, however can not be used in xsd:assertions.
>
> Do you mean that you cannot use an XSLT function?
>
>> And there is a stack problem with large sequences.
I tried it with an xQuery function (I know it does not belong here ;-)) and
had a stack problem with a sequence with 10000 elements ;-( (Oxygen 16.1)
>
> There shouldn't be such problem with this particular function, if the
> XSLT processor recognizes and optimizes tail recursion.
>
Always
Leo
|