Changes

Jump to navigation Jump to search
84 bytes removed ,  18:37, 1 December 2023
m
Text replacement - "</syntaxhighlight>" to "</pre>"
# Local Options
CATALOG = etc/w3-catalog.xml
</syntaxhighlightpre>
* Initial values for global options can also be specified via system properties, which can be passed on with the [https://docs.oracle.com/en/java/javase/11/tools/java.html -D flag] on the command line, or with [https://docs.oracle.com/en/java/javase/11/docs/api/java.base/java/lang/System.html#setProperty(java.lang.String,java.lang.String) System.setProperty()] before creating a BaseX instance. The specified keys need to be prefixed with {{Code|org.basex.}}. An example:
java -Dorg.basex.CATALOG=etc/w3-catalog.xml -cp basex.jar org.basex.BaseX -c"SHOW OPTIONS catalog"
CATALOG: etc/w3-catalog.xml
</syntaxhighlightpre>
* If the Mac OS X packaged application is used, global options can be set within the Info.plist file within the Contents folder of the application package. For example:
<string>-Dorg.basex.CATALOG=etc/w3-catalog.xml</string>
</array>
</syntaxhighlightpre>
* In a [[Web Application]], the default can be adjusted in the {{Code|web.xml}} file as follows:
<param-value>etc/w3-catalog.xml</param-value>
</context-param>
</syntaxhighlightpre>
* In XQuery, local options can be set via option declarations and [[XQuery Extensions#Pragmas|pragmas]].
<text xml:space="preserve">To <b>be</b>, or not to <b>be</b>, that is the question.</text>
</xml>
</syntaxhighlightpre>
If whitespaces are stripped, <code>indent=yes</code> can be assigned to the {{Option|SERIALIZER}} option to get properly indented XML output.<br/>
See [[BaseX_10#Whitespaces|BaseX 10: Whitespaces]] for more information on whitespace handling.
SET BINDINGS GREETING="hello world!"
XQUERY declare variable $GREETING external; $GREETING
</syntaxhighlightpre>
|}
let $b := <b>{ $a }</b>
return $b/a is $a
</syntaxhighlightpre>
This step can be expensive and memory consuming. If the option is disabled, child nodes will only be linked to the new parent nodes, and the upper query returns <code>true</code>.<br/>The option should be used carefully as it changes the semantics of XQuery. It should preferably be used in [[XQuery Extensions#Database Pragmas|Pragmas]].
|}
Bureaucrats, editor, reviewer, Administrators
13,550

edits

Navigation menu