| Evaluates an XQuery expression. If the specified input is a valid file reference or URL, its content will be evaluated instead.
|
|• {{Code|"doc('X')//head"}}<br/>• {{Code|query.xq}}<br/>
|- valign="top"
| {{Code|-b<pars>}}
| Binds external variables to XQuery expressions. This flag may be specified multiple times. Variables names and their values are delimited by equality signs (<code>=</code>). The names may be optionally prefixed with dollar signs. If a variable uses a namespace different to the default namespace, it can be specified with the [http://www.jclark.com/xml/xmlns.htm Clark Notation].
| <code>[[Options#BINDINGS|BINDINGS]]</code>
| • <code>-b$v=example -q$v</code><br/>• <code>-b{URL}ln=value<br/>-q"declare namespace ns='URL'; $ns:ln"</code>
|- valign="top"
| {{Code|-c<input>}}
* Since {{Version|7.3}}, commands can also be specified in the [[Commands#XML Syntax|XML Syntax]].
|
| • {{Code|-c"list;info"}}<br/>• {{Code|-ccommands.txt}}<br/>• {{Code|-c"<info/>"}}
|- valign="top"
| {{Code|-d}}
|
|
|• {{Code|"doc('X')//head"}}<br/>• {{Code|query.xq}}<br/>
|- valign="top"
| {{Code|-b<pars>}}
| <code>[[Options#BINDINGS|BINDINGS]]</code>
|
| • <code>-b$v=example -q$v</code><br/>• <code>-b{URL}ln=value<br/>-q"declare namespace ns='URL'; $ns:ln"</code>
|- valign="top"
| {{Code|-c<input>}}
|
|
| • {{Code|-c"list;info"}}<br/>• {{Code|-ccommands.txt}}<br/>• {{Code|-c"<info/>"}}
|- valign="top"
| {{Code|-d}}