XQuery provides no access to the stack.I think it is related to Marc's query aboutHi France,I think this is not possible, but I think it would be a good thing!
call an anonymous function with a variable argument list [1]
But..I can see that one could implement a new function maybe in the BaseX profiling module [2] that returns a map.The keys would be the argument names of the function being executed and the values those of the current arguments.
All that is required is to implement it :-)/AndyOn 18 August 2014 18:14, France Baril <france.baril@architextus.com> wrote:
Hi,I'm working on improving our tracking capabilities. I was hoping to find a function that would do the equivalent of what the code bellow does, but for internal functions that are not called through the rest interface.string-join(for $name in request:parameter-names()
return $name || ': '
|| string-join(request:parameter($name), '; '),
' ')In short, I was wondering if there is way I can read the function's parameters and their values without listing each one explicitly.I searched the documentation without success.