« Return to Thread: Any function to get name of currently executing xquery?

Re: Any function to get name of currently executing xquery?

by Wolfgang Meier-2 :: Rate this Message:

Reply to Author | View in Thread

> Just curious if there is a function that will get the name/filename of the currently executing xquery?

Well, the function has not really been made for that purpose, but try:

system:enable-tracing(true()),
let $output := system:trace() return ...,
system:enable-tracing(false())

system:trace returns an XML fragment with the names and execution times
of all main queries/functions which have been running after tracing was
enabled.

Wolfgang

------------------------------------------------------------------------------
_______________________________________________
Exist-open mailing list
Exist-open@...
https://lists.sourceforge.net/lists/listinfo/exist-open

 « Return to Thread: Any function to get name of currently executing xquery?