Complete New Sandbox
Some time ago I did a major rewrite of the sandbox application:
http://demo.exist-db.org/sandbox2/sandbox.xql
It is nearly usable, but the syntax-highlighting editor component is limited. In particular, it has no support for safari.
Issues with util:eval==
Also, the sandbox still uses util:eval to execute the entered XQuery code. This works well for simple queries, but can have side-effects if the query imports external modules or tries to access the http context.
For the purpose of the sandbox, it would be better to post the user-supplied query to a dedicated servlet, which executes the code and sends back a result.
- 0 Comments
- Add Comment
