Loading TOC...

xdmp:invoke-in

xdmp: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

Stack Overflow iconStack Overflow: Get the most useful answers to questions from the MarkLogic community, or ask your own question.

Comments

The commenting feature on this page is enabled by a third party. Comments posted to this page are publicly visible.