Hi France,
as your query is an updating one, the server will be deadlocked when triggering another query: the second query cannot be evaluated before the current one has been finished, and the current query is waiting for this second query.
To debug your query, you’ll have to Instead, you’ll need to directly pass on all XML documents to XSLT and remove all the embedded REST calls that point to the same BaseX server instance.
You may as well want to try Jens’ latest database locking mode, which will only lock those databases that will actually be affected by update operations. However, please note the current limitations listed in our documentation [1]
And yet another alternative: multiple read-only and updating operations can also be sequentially chained via restxq:forward [2].
I hope this gives you some clue on how to get rid of the latest conflicts, Christian
[1] http://docs.basex.org/wiki/Transaction_Management#Limitations [2] http://docs.basex.org/wiki/RESTXQ#Forward_and_Redirect