Changes

Jump to navigation Jump to search
510 bytes added ,  09:14, 29 September 2015
no edit summary
|-
| width='120' | '''Signatures'''
|{{Func|xquery:parse|$query as xs:string|item()*}}<br />{{Func|xquery:parse|$query as xs:string, $options as map(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}} parameter 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}}.The naming of the expressions in the query plan may change over time
|-
| '''Errors'''
</MainModule>
</pre>
|}
 
==xquery:parse-uri==
 
{{Mark|Introduced with Version 8.4}}:
 
{| width='100%'
|-
| width='120' | '''Signatures'''
|{{Func|xquery:parse-uri|$uri as xs:string|item()*}}<br />{{Func|xquery:parse-uri|$uri as xs:string, $options as map(*)|item()*}}<br />
|-
| '''Summary'''
|Parses the XQuery module located at {{Code|$uri}} and returns the resulting query plan. The {{Code|$options}} parameter is the same as for [[#xquery:parse|xquery:parse]].
|-
| '''Errors'''
|Any error that may occur while parsing the query.
|}
==xquery:invoke==
 
{{Mark|Updated with Version 8.4}}: will be renamed to {{Code|xquery:eval-uri}}
{| width='100%'
|-
| 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 map(xs:string, xs:string*)|item()*}}<br />
|-
| '''Summary'''
|Opens Evaluates the XQuery module located at {{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}} and {{Code|$options}} parameters is the same as for [[#xquery:eval|xquery:eval]].
|-
| '''Errors'''
Bureaucrats, editor, reviewer, Administrators
13,550

edits

Navigation menu