Hi Steven,
<li>{ request:query( ), function-name(request:query#0)}</li>
And I see that what happens is that it’s the latter function-name(request:query#0) that is generating an error, but only when there is no query string in my request.
Thanks for the observation. This was due to a little bug in our function signatures (request:query was defined to always return a string). I have fixed this in the new snapshot [1].
It’s definitely a good idea to switch to RESTXQ. The usual way to access query parameters is to use the %rest:query-param annotation (see [2] for an example). If you don’t know the names of the parameters in advance, you’ll indeed need to access the query parameter string and process it manually.
Best, Christian
[1] http://files.basex.org/releases/latest/ [2] http://docs.basex.org/wiki/RESTXQ#Query_Parameters