On 16/11/2014 12:17, Christian GrĂ¼n wrote:
If one is aware of the obvious drawbacks of using eval (code injection, query strings cannot be parsed at compile time, ...),
Hi Christian, according to the latter of these points I'd like to know whether there is a possibility of having an XQuery string validated from a syntactical viewpoint. I mean a sort of validate:xquery($qstr as xs:string) or xquery:check($querystr as xs:string, $ctx as map(*)). It could also be useful to know whether one could be able to implement it as a Java extension to basex and in that case where to start from? The GUI does it so I think it should be doable somehow, isn't it? ;-) Thanks a lot, Marco.