MarkLogic Server 11.0 Product Documentation
xdmp:invoke-inxdmp:invoke-in(
$uri as xs:string,
$ID as xs:unsignedLong*,
[$vars as item()*],
[$modules as xs:unsignedLong?],
[$root as xs:string?]
) as item()*
Summary
[DEPRECATED: use xdmp:invoke
with the
database option instead] Returns the result of evaluating a module
at the given path.
Parameters |
uri |
The path of the module to be executed. The path is resolved against
the root of the App Server evaluating the query. The path must
resolve to a main module (not a library module).
|
ID |
The database ID, from xdmp:database("db_name") ,
xdmp:security-database() ,
or xdmp:schema-database() .
|
vars |
The external variable values for this evaluation.
This must be a sequence of even length, alternating QNames and items.
Each QName and item pair specify a variable name and value.
|
modules |
The modules database containing the module to invoke.
The empty sequence specifies the current modules database.
|
root |
The root path for modules.
The empty sequence specifies the current root.
|
Example
xdmp:invoke-in("http://example.com/modules/foo.xqy",2348790529)
=> 2
Copyright © 2024 MarkLogic Corporation. MARKLOGIC is a
registered trademark of MarkLogic Corporation.