Changes

Jump to navigation Jump to search
188 bytes added ,  16:46, 30 January 2019
no edit summary
|-
| width='120' | '''Signatures'''
|{{Func|xquery:eval|$query as xs:anyAtomicType|item()*}}<br />{{Func|xquery:eval|$query as xs:stringanyAtomicType, $bindings as map(*)?|item()*}}<br />{{Func|xquery:eval|$query as xs:stringanyAtomicType, $bindings as map(*)?, $options as map(*)?|item()*}}<br />
|-
| '''Summary'''
|Evaluates the supplied {{Code|$query}} and returns the resulting items. If the query is of type {{Code|xs:anyURI}}, the module located at this URI will be retrieved (a relative URI will be resolved against the static base URI). Otherwise, the input will is expected to be evaluated as query of type {{Code|xs:string}}.
Variables and context items can be declared via {{Code|$bindings}}. The specified keys must be QNames or strings:
* If a key is a QName, it will be directly adopted as variable name.
let $vars := map { xs:QName('pref:xml'): 'XML' }
return xquery:eval($query, $vars)
</pre>
* If a URI is supplied, the query in the specified file will be evaluated:
<pre class='brush:xquery'>
xquery:eval(xs:anyURI('cleanup.xq'))
</pre>
|}
|-
| width='120' | '''Signatures'''
|{{Func|xquery:eval-update|$query as xs:stringanyAtomicType|item()*}}<br />{{Func|xquery:eval-update|$query as xs:stringanyAtomicType, $bindings as map(*)?|item()*}}<br />{{Func|xquery:eval-update|$query as xs:stringanyAtomicType, $bindings as map(*)?, $options as map(*)?|item()}}<br />
|-
| '''Summary'''
;Version 9.2
* Deleted: xquery:invoke, xquery:invoke-update (merged with [[#xquery:invokeeval|xquery:invokeeval]], and [[#xquery:invokeeval-update|xquery:invokeeval-update]] (merged with xquery:eval and xquery:eval-update)
;Version 9.0
Bureaucrats, editor, reviewer, Administrators
13,550

edits

Navigation menu