On Thu, 2022-05-19 at 13:05 +0200, Markus Elfring wrote:
There are a couple of syntax issues with your code shown below:
How often would you dare to pass a detailed FLWOR expression directly as a function parameter instead of specifying an extra variable name or function call?
The XQuery language was designed with a principle of "orthogonality" - anywhere you can have a valuye you can have an arbitrary expression.
So do what is most readable and easiest to miantain.