[MarkLogic Dev General] uri-is-file for modules in database
Wayne Feick
wayne.feick at marklogic.com
Mon Feb 9 11:04:46 PST 2009
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
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://xqzone.marklogic.com/pipermail/general/attachments/20090209/ed01fe42/attachment.html
More information about the General
mailing list