Changes

Jump to navigation Jump to search
957 bytes added ,  23:19, 6 March 2014
no edit summary
==xquery:eval==
 
{{Mark|Updated with Version 7.8.2:}} {{Code|$options}} argument added.
 
{| width='100%'
|-
| width='120' | '''Signatures'''
|{{Func|xquery:eval|$query as xs:string|item()*}}<br />{{Func|xquery:eval|$query as xs:string, $bindings as map(*)|item()*}}<br />{{Func|xquery:eval|$query as xs:string, $bindings as map(*), $options as item()|item()}}<br />
|-
| '''Summary'''
* variables specified as xs:string may be prefixed with a dollar sign. Namespace can be specified using the [http://www.jclark.com/xml/xmlns.htm Clark Notation].
* If the specified string is empty, the value will be bound to the context item.
The {{Code|$options}} parameter contains evaluation options, which can either be specified
* as children of an {{Code|<xquery:options/>}} element:
<pre class="brush:xml">
<xquery:options>
<xquery:permission value="none"/>
</xquery:options>
</pre>
* as map, which contains all key/value pairs:
<pre class="brush:xml">
map { "permission" := "none" }
</pre>
The following options are available:
* {{Code|permission}}: the query will be evaluated with the specified permissions (see [User Management]).
* {{Code|timeout}}: query execution will be interrupted after the specified number of seconds.
|-
| '''Errors'''
==xquery:evaluate==
{{Mark|Introduced Updated with Version 7.8.2:}}{{Code|$options}} argument added.
{| width='100%'
==xquery:invoke==
 
{{Mark|Updated with Version 7.8.2:}} {{Code|$options}} argument added.
 
{| width='100%'
|-
|-
| '''Summary'''
|Opens {{Code|$uri}} as file, evaluates it as XQuery expression at runtime, and returns the resulting items. Database nodes in the result will be copied and returned instead.<br />The semantics of the {{Code|$bindings}} parameter and {{Code|$options}} parameters is the same as for [[#xquery:eval|xquery:eval]].
|-
| '''Errors'''
=Changelog=
 
;Version 7.8.2
* {{Code|$options}} argument added to functions.
;Version 7.8
Bureaucrats, editor, reviewer, Administrators
13,550

edits

Navigation menu