A slight improvement on the code below would be to use
xdmp:modules-database() instead of xdmp:database('Modules') so the code
will work with whatever your current modules database is, regardless of
what its name might be.

Wayne.


On Mon, 2009-02-09 at 16:30 +0100, Geert Josten wrote:

> Erik,
> 
> Xquery files are stored just like other files, but in a different database. 
> Try using something like:
> 
>   xdmp:eval(
>     '
>       boolean(doc("here.xqy"))
>     ',
>     (),
>     <options xmlns="xdmp:eval">
>       <database>{xdmp:database('Modules')}</database>
>     </options>)
> 
> Mind though, the user executing the eval needs to have eval privileges..
> 
> Kind regards,
> Geert
> 


_______________________________________________
General mailing list
[email protected]
http://xqzone.com/mailman/listinfo/general

Reply via email to