Hello,

I use xquery:eval to evaluate some user provided queries.

It works well but when there is an error the true origin of the error
is hidden, as it will give the file and line of the xquery:eval call.

Is there any way to pass the origin of the error through the
xquery:eval?
I guess the best would be to keep both origins.

My workaround is to do a try/catch inside the evaluated query and wrap
the result with the error variables. It's a bit cumbersome and does not
work for static errors.

Thank you,
Iwan