The XQuery Context functions are XQuery extensions that allow you to start a new query context, manipulate the current context, or get information about the current context.
Function name | Description |
---|---|
xdmp:describe | Returns a string representing the description of a given item sequence. |
xdmp:eval | Returns the result of evaluating a string as an XQuery module. |
xdmp:eval-in | [DEPRECATED: use xdmp:eval with the database option instead] Returns the result of evaluating a string as an XQuery module in a given database. |
xdmp:invoke | Returns the result of evaluating an XQuery or Server-Side JavaScript module at the given path. |
xdmp:invoke-function | Returns the result of evaluating an XQuery function value. |
xdmp:invoke-in | [DEPRECATED: use xdmp:invoke with the database option instead] Returns the result of evaluating a module at the given path. |
xdmp:javascript-eval | Returns the result of evaluating a string as a JavaScript module. |
xdmp:node-collections | Returns any collections for the node's document in the database. |
xdmp:node-database | Returns the database id where the parameter is stored. |
xdmp:node-uri | Returns the document-uri property of the parameter or its ancestor. |
xdmp:path | Returns a string whose value corresponds to the path of the node. |
xdmp:set | Set the value of a variable to the specified expression. |
xdmp:spawn | Place the specified module on the task queue for evaluation. |
xdmp:spawn-function | Place the specified function value on the task queue for evaluation. |
xdmp:spawn-in | [DEPRECATED: use xdmp:spawn with the database option instead] Place the specified module on the task queue for evaluation. |
xdmp:sql | Executes an ad hoc SQL query. |
xdmp:sql-plan | Returns a node representing the query plan of the given SQL SELECT query. |
xdmp:unpath | Evaluate a string as an XPath and return the corresponding node(s). |
xdmp:value | Evaluate an expression in the context of the current evaluating statement. |
xdmp:with-namespaces | Evaluates the expression in the context of a specific set of namespace bindings. |
xdmp:xquery-version | Returns the XQuery language version of the calling module. |
xdmp:xslt-eval | Executes an XSLT stylesheet against a node. |
xdmp:xslt-invoke | Executes an XSLT stylesheet against a node. |