Update facility

Thursday, 9 February 2017 · 2 messages
M
meumapple9 Feb 2017 19:58 #
I have written a function consisting in a copy/modify expression:
declare function local:mine($s)
{
copy $e:= $s
modify (...)
return $e
};
It seems it is not possible to somehow make it recursive ( ... return local:mine($e) ): can anyone confirm this? What is the best way to have a recursive function while using the update facility? Best, Giuseppe
CG
Christian Grün9 Feb 2017 21:04 #
Quoted text · meumapple · 1 line
> It seems it is not possible to somehow make it recursive ( ... return local:mine($e) ): can anyone confirm this?
Could you please give us a full example (input, expected output?

⚡Generated with XQuery