Changes

Jump to navigation Jump to search
60 bytes removed ,  18:39, 1 December 2023
m
Text replacement - "syntaxhighlight" to "pre"
* The {{Code|.basex}} [[Configuration#Configuration Files|configuration file]] is parsed by every new local BaseX instance. It contains all global options. Local options can be specified at the end of the file after the {{Code|Local Options}} comment:
<syntaxhighlight pre lang="perl">
# General Options
DEBUG = false
* 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:
<syntaxhighlight pre lang="perl">
java -Dorg.basex.CATALOG=etc/w3-catalog.xml -cp basex.jar org.basex.BaseX -c"SHOW OPTIONS catalog"
CATALOG: etc/w3-catalog.xml
* 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:
<syntaxhighlight pre lang="xml">
<key>JVMOptions</key>
<array>
* In a [[Web Application]], the default can be adjusted in the {{Code|web.xml}} file as follows:
<syntaxhighlight pre lang="xml">
<context-param>
<param-name>org.basex.catalog</param-name>
* If the option is enabled, whitespaces of an element and its descendants can locally be preserved with the <code>xml:space="preserve"</code> attribute:
<syntaxhighlight pre lang="xml">
<xml>
<title>
Bureaucrats, editor, reviewer, Administrators
13,550

edits

Navigation menu