Skip to content

Commit 23f1915

Browse files
committed
Outstanding documentation changes, eg using RuleBasedCollator
1 parent 1f07ea0 commit 23f1915

File tree

2 files changed

+9
-4
lines changed

2 files changed

+9
-4
lines changed

data/devguide_log4j.xml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
<productname>eXist-db – Open Source Native XML Database</productname>
55
<title>Developer's Guide - Log4J</title>
66
<subject>Log4J Logging Guide</subject>
7-
<date>November 2009</date>
7+
<date>October 2016</date>
88
<author>
99
<firstname>Loren</firstname>
1010
<surname>Cahlander</surname>
@@ -698,4 +698,4 @@ logger.info( someObj );
698698
intended setting) is small.</para>
699699
</section>
700700
</chapter>
701-
</book>
701+
</book>

data/xquery.xml

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
<bookinfo>
55
<productname>eXist-db – Open Source Native XML Database</productname>
66
<title>XQuery in eXist-db</title>
7-
<date>October 2012</date>
7+
<date>September 2017</date>
88
<orgname>The eXist-db Project</orgname>
99
</bookinfo>
1010
<chapter>
@@ -730,6 +730,11 @@ return $w</synopsis>
730730
"Bäuerin" &lt; "Bier"</synopsis>
731731
<para>Which returns <option>true</option>. Note that if you use the default codepoint
732732
collation instead, the comparison would evaluate to <option>false</option>.</para>
733+
<para>You can also use java class specified collators. They should be subclassing <option>java.text.RuleBasedCollator</option>. It will be used like this:</para>
734+
<synopsis language="xquery">for $w in ("das", "daß", "Buch", "Bücher", "Bauer", "Bäuerin", "Jagen", "Jäger")
735+
order by $w collation "java:f.c.d.n.MyRuleBasedGermanCollator"
736+
return $w</synopsis>
737+
<para>The jar with the .class file(s) of the collator needs to be in <filename>${EXIST_HOME}/lib/user</filename></para>
733738
<note>
734739
<para>eXist-db's range index is currently only usable with the default codepoint
735740
collation. This means that comparisons using a different collation will not be
@@ -1028,4 +1033,4 @@ declare option output:media-type "application/json";</synopsis>
10281033
testing/debugging.</para>
10291034
</section>
10301035
</chapter>
1031-
</book>
1036+
</book>

0 commit comments

Comments
 (0)