|-
| '''Summary'''
|Evaluates {{Code|$query}} as XQuery expression at runtime and returns the resulting items. Database nodes in the result will be copied and returned instead.<br />Variables and context items can be declared via {{Code|$bindings}}. The specified keys must be QNames or strings, the values can be arbitrary item sequences:
* variables specified as QNames will be directly interpreted as variable name.
* 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].
| '''Errors'''
|{{Error|BXXQ0001|#Errors}} the query contains [[XQuery Update#Updating Expressions|updating expressions]].
|{{Error|FOTY0013|#Errors}} the expression yields function items.
|-
| '''Examples'''
|-
| '''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 is the same as for [[#xquery:eval|xquery:eval]].
|-
| '''Errors'''
|{{Error|BXXQ0001|#Errors}} the query expression contains [[XQuery Update#Updating Expressions|updating expressions]].|{{Error|FOTY0013|#Errors}} the expression yields function items.
|}