Changes

Jump to navigation Jump to search
554 bytes added ,  22:56, 17 June 2012
|-
| width='90' | '''Signatures'''
|{{Func|client:query|$id as xs:anyURI, $query as xs:string|item()*}}<br/>{{Func|client:query|$id as xs:anyURI, $query as xs:string, $bindings as map(*)|item()*}}
|-
| '''Summary'''
| This function evaluates Evaluates a query and returns the result as sequence. The parameter {{Code|$id}} contains the session id returned by [[Client Module#client:connect|client:connect()]], and {{Code|$query}} represents the query string, which will be evaluated by the server.<br />Variables and the context item can be declared via {{Code|$bindings}}. The specified keys must be QNames or strings, the values can be arbitrary items:* 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]. If the specified string is empty, the value will be bound to the context item.
|-
|'''Errors'''
Bureaucrats, editor, reviewer, Administrators
13,550

edits

Navigation menu