Hans-Peter,
thanks for your feedback. Yes, your suggestion sounds useful – and it makes even more sense if server-side query files are to be executed. We’ve added your idea to our todo stack; most probably it will be included in the next minor release of our (still young) API.
Feel free to ask for more, Christian
On Thu, May 6, 2010 at 11:58 PM, Hans-Peter Oeri hp@oeri.ch wrote:
Hi!
While learning about xml databases and how to access them, I came across your jax-rx project. While most of REST is quite straightforward, I don't see any method to define external variables. I don't quite understand why the possibility to define not only the xquery, but also the values for its external variables has been left out?
It would - after all - be nice... Just like parameter substitution in SQL APIs...
POST could get variable values and value types in an additional <variables> block. GET could accept parameters like var.* - probably deriving the type from the variable declaration in the xquery. If the http querystring (which always is a string...) cannot be converted accordingly, it could throw.
What do you think? HPO
___________________________
Christian Gruen Universitaet Konstanz Department of Computer & Information Science D-78457 Konstanz, Germany Tel: +49 (0)7531/88-4449, Fax: +49 (0)7531/88-3577 http://www.inf.uni-konstanz.de/~gruen