Changes

Jump to navigation Jump to search
558 bytes removed ,  16:17, 24 June 2015
|-
| 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 itemmap(xs:string, xs:string)|item()}}<br />
|-
| '''Summary'''
* It a key is a string, it 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.
|-
| width='120' | '''Signatures'''
|{{Func|xquery:update|$query as xs:string|item()*}}<br />{{Func|xquery:update|$query as xs:string, $bindings as map(*)|item()*}}<br />{{Func|xquery:update|$query as xs:string, $bindings as map(*), $options as itemmap(xs:string, xs:string)|item()}}<br />
|-
| '''Summary'''
|-
| width='120' | '''Signatures'''
|{{Func|xquery:parse|$query as xs:string|item()*}}<br />{{Func|xquery:parse|$query as xs:string, $options as itemmap(xs:string, xs:string)|item()}}<br />
|-
| '''Summary'''
|Parses the specified {{Code|$query}} string as XQuery module and returns information on the resulting query plan (please note that the naming of the expressions in the query plan may change over time). The {{Code|$options}} parameters can be specified in two ways:* as children of an {{Code|<xquery:options/>}} element:<pre class="brush:xml"><xquery:options> <xquery:compile value="true"/></xquery:options></pre>* as map, which contains all key/value pairs:<pre class="brush:xml">map { "compile": true() }</pre>The following options are availableparameter influences the output:
* {{Code|compile}}: additionally compiles the query after parsing it. By default, this option is {{Code|false}}.
* {{Code|plan}}: returns an XML representation of the internal query plan. By default, this option is {{Code|true}}.
|-
| width='120' | '''Signatures'''
|{{Func|xquery:invoke|$uri as xs:string|item()*}}<br />{{Func|xquery:invoke|$uri as xs:string, $bindings as map(*)|item()*}}<br />{{Func|xquery:invoke|$uri as xs:string, $bindings as map(*), $options as itemmap(xs:string, xs:string)|item()*}}<br />
|-
| '''Summary'''
Bureaucrats, editor, reviewer, Administrators
13,550

edits

Navigation menu