Ah, you are right & thank you - appending "&method=text" I see the result.
Kind regards, Hans-Jürgen Am Mi., 11. Jan. 2023 um 10:34 Uhr schrieb Christian Grün < christian.gr...@gmail.com>: > Hi Hans-Jürgen, > > > (My understanding is that "database" should be replaced with the name of > a database.) > > Right. > > > However, the URL yields an error ("Document is empty"). > > I guess this is how your browser interprets the result? If you use a > command-line tool (curl, wget, etc.) or by looking at the source code > in the browser, you should see the actual response. > > > At any rate, the documentation should be explicit about the evaluation > context of REST calls with parameter "query" or "run". If the resource > identified by the URL is a single document, the context item is fairly > obvious. However, in case of a database or a database collection, the > evaluation context is not obvious. > > You mean that it’s not obvious that more than a single item can be > bound to the context in BaseX, and that this behavior is not 100% > compliant with the specification, right? This is something indeed > that’s currently discussed in the qtspecs respository for upcoming > XQuery 4 features [1]. > > All the best, > Christian > > [1] https://github.com/qt4cg/qtspecs/issues/129 >