Jup, in existdb you can treat RESTXQ scripts like data and throw it directly into the database instead of separating code from data like in BaseX..but thanks for clarification.
Regards Andreas Jung ----- Sorry for being brief - sent from a mobile device.
Am 17.02.2015 um 21:31 schrieb Christian GrĂ¼n christian.gruen@gmail.com:
Q: RESTXQ scripts must be filesystem-based (location with respect to RESTXQPATH)
Yep ;) The doc says: "Whenever a RESTXQ URL is requested, the RESTXQPATH module directory and its sub-directories will be parsed for functions with RESTXQ annotations".
In BaseX, you can address any database from within a single XQuery expression, so it makes most sense not to restrict RESTXQ files to a specific database.
I guess that's the answer? Probably it's solved differently in eXist-db?
or can I put RESTXQ script directly into the database (as I tried it as described)?
Andreas -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.11 (Darwin) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/
iQGUBAEBAgAGBQJU439tAAoJEADcfz7u4AZjDLsLwI23llzsiwx8Y2S03bpUbsAZ ktXbGUDHb1J7QSt/lwlOvSt/mCB4pEkf/zhR/u0LQr1EZ2UuoBeHhIVmvZPDzFwB fxJZWR3fdYEGN/1hItNwClTLYdaMmtgd7UZgY6NRwuaGYMUT4WBpBrv0ExjzFBeW w4KyNMHJPZF2v4VUWZq8UbucIzHYXMftwOiJdAJhvWWrXI3x0cbqiX/i+5jtce8d Zrc0ORECxDGFBtuicC0HH01FuAvs6WzRT0yzZRZ6V6xJMWbMDYIy48aoGMjnxwl4 dPW5HiMUE9Mbm6bzFRsloQ+mHlR4qRaakEh6PwAiSsElPJcBk7IkBn9YRivg4kbl ue6zgsa9sfk7YX6Vo8rfZggpQKvdP9fgZkpzSfPhc0NoqpmWza4nPF1l6fS5FMw+ IC61Q47mp+62yY+AdmG1N1kptmoI7xjUl2tomjHVXC70FPxcLV64WMGDN59Q81uQ 56QgeY0mfKkmlOXoPbXZGALGlzZNzvA= =YHaT -----END PGP SIGNATURE-----