Skip to content

Commit f277e58

Browse files
authored
Merge pull request #138 from miljanuscumlic/minor-corrections
Added json-ignore-whitespace-text-nodes serialize option and some minor corrections
2 parents 041203f + 13ae720 commit f277e58

File tree

2 files changed

+13
-5
lines changed

2 files changed

+13
-5
lines changed

data/indexing.xml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
types of indexes:</para>
2121
<note>
2222
<para>Properly configured indexes have a huge impact on database performance! Some
23-
expressions might run a hundred times faster with an index. This is particular
23+
expressions might run a hundred times faster with an index. This particulary
2424
applies to the range index: without a range index, eXist has to do a full scan
2525
over the context nodes to look up an element value, which severly limits
2626
performance and scalability.</para>
@@ -202,7 +202,7 @@
202202
</markup>
203203
</programlisting>
204204
</example>
205-
<para>All configuration documents documents have an <sgmltag>index</sgmltag>
205+
<para>All configuration documents have an <sgmltag>index</sgmltag>
206206
element directly below the root element, which encloses the index configuration.
207207
Only <emphasis>one</emphasis>
208208
<sgmltag>index</sgmltag> element is permitted in a document. Apart from the
@@ -257,7 +257,7 @@
257257
any query running on the database instance, no matter how the query is called.</para>
258258
</step>
259259
<step>
260-
<para>Click <guimenuitem>Refresh</guimenuitem> and switch to the <guimenuitem>Indexes</guimenuitem>
260+
<para>Click <guimenuitem>Refresh</guimenuitem> and switch to the <guimenuitem>Index Usage</guimenuitem>
261261
tab.</para>
262262
</step>
263263
</procedure>

data/xquery.xml

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -183,7 +183,7 @@ return
183183
<synopsis language="xquery">try { 'a' + 7 } catch * { concat($err:code, ": ", $err:description) }</synopsis>
184184
returns the full error (excerpted here):
185185
<synopsis>err:XPTY0004: It is a type error if...</synopsis>
186-
For more information, see the article on the eXist-db blog, <ulink url="http://atomic.exist-db.org/HowTo/XQuery3/Try-CatchExpression">Higher-Order Functions in XQuery 3.0</ulink> and the <ulink url="http://www.w3.org/TR/xquery-30/#id-try-catch">specification</ulink>.</para>
186+
For more information, see the article on the eXist-db blog, <ulink url="http://atomic.exist-db.org/HowTo/XQuery3/Try-CatchExpression">Try-Catch Expression</ulink> and the <ulink url="http://www.w3.org/TR/xquery-30/#id-try-catch">specification</ulink>.</para>
187187
</listitem>
188188
<listitem>
189189
<para>The new String Concatenation expression: A convenient alternative to
@@ -816,6 +816,14 @@ return $w</synopsis>
816816
add-exist-id to "element" will only show the node id of the
817817
top-level element, "all" will show the ids of all elements.</para>
818818
</listitem>
819+
</varlistentry>
820+
<varlistentry>
821+
<term>
822+
<option>json-ignore-whitespace-text-nodes= yes | no</option>
823+
</term>
824+
<listitem>
825+
<para>to discard white-space text nodes when serializing XML/XDM to JSON.</para>
826+
</listitem>
819827
</varlistentry>
820828
</variablelist>
821829
<para>The general options include the following:</para>
@@ -902,7 +910,7 @@ return $w</synopsis>
902910
</variablelist>
903911
<para>For example, to disable XInclude expansion, and indent the output, you can use
904912
the following syntax:</para>
905-
<synopsis>declare option exist:serialize "expand-xincludes=no";</synopsis>
913+
<synopsis>declare option exist:serialize "expand-xincludes=no indent=yes";</synopsis>
906914
<para>For the output method parameter, eXist-db currently recognizes three methods:
907915
<option>xml</option>, <option>xhtml</option> and <option>text</option>. Note
908916
that unlike the xml method, the xhtml setting uses only the short form for

0 commit comments

Comments
 (0)