Skip to content

Commit 5ccee03

Browse files
authored
Merge pull request #188 from eriksiegel/develop
Documentation refactoring upto 20180103
2 parents ec9346f + 80dae83 commit 5ccee03

File tree

71 files changed

+13189
-13861
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

71 files changed

+13189
-13861
lines changed

pom.xml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -81,13 +81,15 @@
8181
<filtering>true</filtering>
8282
<includes>
8383
<include>templates/**</include>
84+
<include>data/**</include>
8485
</includes>
8586
</resource>
8687
<resource>
8788
<directory>src/main/xar-resources</directory>
8889
<filtering>false</filtering>
8990
<excludes>
9091
<exclude>templates/**</exclude>
92+
<exclude>data/**</exclude>
9193
</excludes>
9294
</resource>
9395
</resources>

src/main/xar-resources/data/author-reference/author-reference.xml

Lines changed: 249 additions & 102 deletions
Large diffs are not rendered by default.

src/main/xar-resources/data/beginners-guide-to-xrx-v4/beginners-guide-to-xrx-v4.xml

Lines changed: 9 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -67,9 +67,7 @@
6767
have <link xlink:href="http://exist-db.org">eXist</link>
6868
running on your local system. By default eXist runs on
6969
port <code>8080</code> so that when you set your web
70-
browser to <link
71-
xlink:href="http://localhost:8080/exist/"
72-
>http://localhost:8080/exist/</link> you should see
70+
browser to <link xlink:href="http://localhost:8080/exist/">http://localhost:8080/exist/</link> you should see
7371
the eXist homepage come up.</para>
7472
<para>You can also run this tutorial on a remote eXist server. If you
7573
are doing this, you must replace the server name
@@ -120,9 +118,7 @@
120118
<emphasis role="bold">XRX</emphasis> is the name of the web
121119
application architecture that we are introducing in this guide.
122120
The term XRX comes from the combination of XForms, REST, and
123-
XQuery. The term was <link
124-
xlink:href="http://archive.oreilly.com/pub/post/xrx_a_simple_elegant_disruptiv_1.html"
125-
>coined</link> by Dan McCreary. XForms are used in the
121+
XQuery. The term was <link xlink:href="http://archive.oreilly.com/pub/post/xrx_a_simple_elegant_disruptiv_1.html">coined</link> by Dan McCreary. XForms are used in the
126122
client (web browser), REST is the interface between the client
127123
and the server, and XQuery is the server language. Two of the
128124
most significant advantages of XRX over other architectures are:
@@ -174,9 +170,7 @@
174170
SOAP interface testing tools are required. All you need to test
175171
your web services is a web browser. For example, the home page
176172
of the test application under the default configuration will be
177-
<link
178-
xlink:href="http://localhost:8080/exist/apps/term/index.html"
179-
>http://localhost:8080/exist/apps/term/index.html</link>.</para>
173+
<link xlink:href="http://localhost:8080/exist/apps/term/index.html">http://localhost:8080/exist/apps/term/index.html</link>.</para>
180174
<para>Several additional terms and concepts are helpful in understanding the XRX approach:</para>
181175
<para>
182176
<emphasis role="bold">WebDAV</emphasis> is a protocol for transferring files, and we use eXist's WebDAV interface to move files to and from
@@ -210,8 +204,7 @@
210204
<listitem>
211205
<para>
212206
<emphasis role="bold">Apps</emphasis>: XRX applications
213-
should be stored within the <emphasis role="bold"
214-
>/db/apps</emphasis> parent collection. </para>
207+
should be stored within the <emphasis role="bold">/db/apps</emphasis> parent collection. </para>
215208
</listitem>
216209
<listitem>
217210
<para>
@@ -277,9 +270,7 @@
277270
has created a specification for application metadata, called
278271
EXPath Packaging System. eXist supports and extends this
279272
module. This tutorial will not cover this file's structure,
280-
but you can learn more about this by reading <link
281-
xlink:href="https://exist-db.org/exist/apps/doc/repo.xml"
282-
/>. </para>
273+
but you can learn more about this by reading <link xlink:href="https://exist-db.org/exist/apps/doc/repo.xml"/>. </para>
283274
</listitem>
284275
</orderedlist>
285276
<para>You are always free to change the names of the collection or the
@@ -446,9 +437,7 @@
446437
publish-status-code. (By using the repo.xml Deployment
447438
Descriptor's "prepare" field, you can automate the installation
448439
of this collection.xconf file into the target location; see
449-
<link
450-
xlink:href="https://exist-db.org/exist/apps/doc/repo.xml#D1.4.10"
451-
/>.)</para>
440+
<link xlink:href="https://exist-db.org/exist/apps/doc/repo.xml#D1.4.10"/>.)</para>
452441
</sect2>
453442

454443
<!-- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -->
@@ -648,9 +637,7 @@
648637
The last control is the <tag>xf:select1</tag> control that
649638
allows the user to select one value from a list of values. (For
650639
a complete discussion of the XForms controls we suggest you use
651-
the XForms Wikibook at <link
652-
xlink:href="http://en.wikibooks.org/wiki/XForms"
653-
>http://en.wikibooks.org/wiki/XForms</link>. The Input Form
640+
the XForms Wikibook at <link xlink:href="http://en.wikibooks.org/wiki/XForms">http://en.wikibooks.org/wiki/XForms</link>. The Input Form
654641
Controls section goes through each of the controls in the XForms
655642
specification. In addition to the standard controls there are
656643
other controls that can also be integrated directly into XForms,
@@ -778,9 +765,7 @@
778765
reduce duplication and then reference these functions in
779766
each of your queries. For example, you could put the HTML
780767
boilerplate into a style module. You could also explore
781-
eXist's HTML templating module; see <link
782-
xlink:href="https://exist-db.org/exist/apps/doc/templating.xml"
783-
/>.</para>
768+
eXist's HTML templating module; see <link xlink:href="https://exist-db.org/exist/apps/doc/templating.xml"/>.</para>
784769
</listitem>
785770
<listitem>
786771
<para>Change the <code>list-items.xq</code> to use HTML tables to view each item.</para>
@@ -832,9 +817,7 @@
832817
<listitem>
833818
<para>Modify the collection configuration file for the
834819
<code>/db/apps/terms/data</code> collection to enable
835-
versioning when items are updated. See <link
836-
xlink:href="https://exist-db.org/exist/apps/doc/versioning.xml"
837-
/>.</para>
820+
versioning when items are updated. See <link xlink:href="https://exist-db.org/exist/apps/doc/versioning.xml"/>.</para>
838821
</listitem>
839822
</orderedlist>
840823
</sect1>
Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<term>
2-
<id></id>
3-
<term-name></term-name>
4-
<definition></definition>
5-
<publish-status-code></publish-status-code>
2+
<id/>
3+
<term-name/>
4+
<definition/>
5+
<publish-status-code/>
66
</term>

src/main/xar-resources/data/beginners-guide-to-xrx-v4/listings/listing-9.xml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,8 @@
66
<h2>Search Terms</h2>
77
<form method="GET" action="search.xq">
88
<label for="q">Search:</label>
9-
<input type="text" value="" id="q" name="q" size="30" />
10-
<input type="submit" value="Search" />
9+
<input type="text" value="" id="q" name="q" size="30"/>
10+
<input type="submit" value="Search"/>
1111
</form>
1212
</body>
1313
</html>
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
content:get-metadata($binary as xs:base64Binary) as document-node()
22
content:get-metadata-and-content($binary as xs:base64Binary) as document-node()
3-
content:stream-content($binary as xs:base64Binary, $paths as xs:string*, $callback as function, $namespaces as element()?, $userData as item()*) as empty-sequence()
3+
content:stream-content($binary as xs:base64Binary, $paths as xs:string*, $callback as function, $namespaces as element()?, $userData as item()*) as empty-sequence()

src/main/xar-resources/data/db4-versions/documentation-db4.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@
6464
</section>
6565
<section id="all-documentation">
6666
<title>All Documentation</title>
67-
<para>Besides these articles, you can search eXist-db's XQuery <ulink url="{fundocs}/index.html">function module library</ulink>.</para>
67+
<para>Besides these articles, you can search eXist-db's XQuery <ulink url="{${fundocs.pkg.abbrev}}/index.html">function module library</ulink>.</para>
6868
<section id="getting-started">
6969
<title>Getting Started</title>
7070
<table class="documentation">

src/main/xar-resources/data/db4-versions/extensions-db4.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@
6969
<para>eXist-db must also be told which modules to load, this is done in
7070
<filename>conf.xml</filename> and the Class name and Namespace for each module is listed
7171
below. Note – eXist-db will require a restart to load any new modules added. Once a Module is configured
72-
and loaded eXist-db will display the module and its function definitions as part of the <ulink url="{fundocs}">function library</ulink> page or through
72+
and loaded eXist-db will display the module and its function definitions as part of the <ulink url="{${fundocs.pkg.abbrev}}">function library</ulink> page or through
7373
<command>util:decribe-function()</command>.</para>
7474
</section>
7575
<section id="module_example">

src/main/xar-resources/data/db4-versions/incompatibilities-db4.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@
4040
<para>The XQuery engine has been updated to support the changed syntax for <emphasis>maps in XQuery 3.1</emphasis>. The query parser will still accept the
4141
old syntax for map constructors though (<code>map { x:= "y"}</code> instead of <code>map { x: "y" }</code> in XQuery 3.1), so old
4242
code should run without modifications. All map module functions from XQuery 3.1 are
43-
<ulink url="{fundocs}/view.html?uri=http://www.w3.org/2005/xpath-functions/map&amp;location=java:org.exist.xquery.functions.map.MapModule">available</ulink>.</para>
43+
<ulink url="{${fundocs.pkg.abbrev}}/view.html?uri=http://www.w3.org/2005/xpath-functions/map&amp;location=java:org.exist.xquery.functions.map.MapModule">available</ulink>.</para>
4444
<para>The signatures for some <emphasis>higher-order utility functions</emphasis> like fn:filter, fn:fold-left and fn:fold-right have changed as well. Please review your
4545
use of those functions. Also, fn:map is now called fn:for-each, though the old name is still accepted.</para>
4646
<para>The bundled Lucene has been upgraded from 3.6.1

src/main/xar-resources/data/db4-versions/validation-db4.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -142,7 +142,7 @@
142142
<listitem>
143143
<para>Jing</para>
144144
</listitem>
145-
</itemizedlist>Each of these options are discussed in the following sections. Consult the <ulink url="{fundocs}/view.html?uri=http://exist-db.org/xquery/validation">XQuery Function Documentation</ulink> for detailed functions
145+
</itemizedlist>Each of these options are discussed in the following sections. Consult the <ulink url="{${fundocs.pkg.abbrev}}/view.html?uri=http://exist-db.org/xquery/validation">XQuery Function Documentation</ulink> for detailed functions
146146
descriptions.</para>
147147
<section>
148148
<title>JAXP</title>

src/main/xar-resources/data/db4-versions/xquery-db4.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -130,7 +130,7 @@
130130
currently not support the <ulink url="http://www.w3.org/TR/xquery/#id-schema-import-feature">schema import</ulink> and
131131
<ulink url="http://www.w3.org/TR/xquery/#id-schema-validation-feature">schema validation features</ulink>
132132
defined as <ulink url="http://www.w3.org/TR/xquery/#id-conform-optional-features">optional</ulink>
133-
in the XQuery specification. eXist-db provides <ulink url="{fundocs}/view.html?uri=http://exist-db.org/xquery/validation&amp;location=java:org.exist.xquery.functions.validation.ValidationModule">extension functions</ulink>
133+
in the XQuery specification. eXist-db provides <ulink url="{${fundocs.pkg.abbrev}}/view.html?uri=http://exist-db.org/xquery/validation&amp;location=java:org.exist.xquery.functions.validation.ValidationModule">extension functions</ulink>
134134
to perform XML validation. The database does not
135135
store type information along with the nodes. It therefore cannot know
136136
the typed value of a node and has to assume

src/main/xar-resources/data/debugger/debugger.xml

Lines changed: 0 additions & 114 deletions
This file was deleted.

0 commit comments

Comments
 (0)