Changes

Jump to navigation Jump to search
164 bytes added ,  20:22, 14 June 2012
no edit summary
$ basex -h
BaseX [Standalone]
Usage: basex [-bcdiLosuvVwxz] [filequery] [filequery] Execute XQuery query fileor expression -b<pars> Bind external XQuery query variables -c<cmdsinput> Execute database commandsfrom file or string
-d Activate debugging mode
-i<input> Open initial file or database
-L Add trailing newline after query result
-o<fileoutput> Write output to file
-s<pars> Set serialization parameter(s)
-u Write updates back to original files
! Examples
|- valign="top"
| {{Code|[filequery]}}| Executes Evaluates an XQuery expression. If the specified XQuery input is a valid filereference or URL, its content will be evaluated instead.
|
|- valign={{Code|"topdoc('X')//head"}}<br/>{{Code|query.xq}}<br/>
|- valign="top"
| {{Code|-b&lt;pars&gt;}}
| 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&lt;input&gt;}}
| Executes [[commands]]:
* Several commands in the input can be separated by semicolons.
* If the specified input is a valid file referenceor URL, its content will be executed instead. Empty lines and lines starting with the number sign {{Code|#}} will be ignored.
* 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|-o output.txt}}
|- valign="top"
| {{Code|-q&lt;expr&gt;}}
| Executes the specified string as XQuery expression.
|
| {{Code|-q"doc('input')//head"}}
|- valign="top"
| {{Code|-s&lt;pars&gt;}}
$ basexclient -h
BaseX [Client]
Usage: basexclient [-bcdiLnopPsUvVwxz] [filequery] [filequery] Execute XQuery query fileor expression -b<pars> Bind external XQuery query variables -c<cmdsinput> Execute database commandsfrom file or string
-d Activate debugging mode
-i<input> Open initial file or database
-L Add trailing newline after query result
-n<name> Set server (host) name
-o<fileoutput> Write output to file
-p<num> Set server port
-P<pass> Specify user password
! width='165' | Examples
|- valign="top"
| {{Code|[filequery]}}| Executes Evaluates an XQuery expression. If the specified XQuery input is a valid filereference or URL, its content will be evaluated instead.
|
|
|{{Code|"doc('X')//head"}}<br/>{{Code|query.xq}}<br/>
|- valign="top"
| {{Code|-b&lt;pars&gt;}}
| <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&lt;input&gt;}}
| Executes [[commands]]:
* Several commands in the input can be separated by semicolons.
* If the specified input is a valid file referenceor URL, its content will be executed instead. Empty lines and lines starting with the number sign {{Code|#}} will be ignored.
* 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|-Uadmin -Padmin}}
|- valign="top"
| {{Code|-q&lt;expr&gt;}}
| Executes the specified string as XQuery expression.
|
|
| {{Code|-q"doc('input')//head"}}
|- valign="top"
| {{Code|-s&lt;pars&gt;}}
Bureaucrats, editor, reviewer, Administrators
13,554

edits

Navigation menu