Any function to get name of currently executing xquery?

View: New views
2 Messages — Rating Filter:   Alert me  

Any function to get name of currently executing xquery?

by Andrzej Jan Taramina :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

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

I looked in the function docs, but wasn't able to find one.

Thanks!

--
Andrzej Taramina
Chaeron Corporation: Enterprise System Solutions
http://www.chaeron.com

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

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

by Wolfgang Meier-2 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

> 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