Skip to content

Commit 0fd8f68

Browse files
committed
fix(urlrewrite): minor typo
1 parent 3288c97 commit 0fd8f68

File tree

1 file changed

+2
-9
lines changed

1 file changed

+2
-9
lines changed

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

Lines changed: 2 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
<para>A typical URL rewriting operation might be handled as follows:</para>
1818
<orderedlist>
1919
<listitem>
20-
<para>eXist receives a HTTP request; in the default configuration this is handled by the <code>XQueryUrlRewrite</code> servlet for any URI starting with the path <code>/exist</code>.</para>
20+
<para>eXist receives an HTTP request; in the default configuration this is handled by the <code>XQueryUrlRewrite</code> servlet for any URI starting with the path <code>/exist</code>.</para>
2121
</listitem>
2222
<listitem>
2323
<para>The <code>XQueryUrlRewrite</code> servlet looks for an XQuery script to interpret the rest of the URI (see <xref linkend="controller-mappings"/>). By convention this is called <code>controller.xq</code> (or in older applications <code>controller.xql</code>). The default configuration will work with a script saved with this name in the base collection of an application.</para>
@@ -439,14 +439,7 @@
439439
<code>util:eval</code>, the controller code below passes the user-supplied query to XQueryServlet first, then post-processes the returned result and stores it into a session for later use by the ajax frontend:</para>
440440

441441
<programlisting language="xquery" xlink:href="listings/listing-11.txt"/>
442-
<para>The client passes the user-supplied query string in a request parameter, so the controller has to forward this to
443-
<code>XQueryServlet</code>
444-
somehow.
445-
<code>XQueryServlet</code>
446-
has an option to read the XQuery source from a request attribute,
447-
<literal>xquery.source</literal>. The query result will be saved to the attribute
448-
<literal>results</literal>. The second XQuery,
449-
<literal>session.xq</literal>, takes the result and stores it into a HTTP session, returning only the number of hits and the elapsed time.</para>
442+
<para>The client passes the user-supplied query string in a request parameter, so the controller has to forward this to <code>XQueryServlet</code> somehow. <code>XQueryServlet</code> has an option to read the XQuery source from a request attribute, <literal>xquery.source</literal>. The query result will be saved to the attribute <literal>results</literal>. The second XQuery, <literal>session.xq</literal>, takes the result and stores it into an HTTP session, returning only the number of hits and the elapsed time.</para>
450443
<para>When called through retrieve,
451444
<literal>session.xq</literal>
452445
looks at parameter

0 commit comments

Comments
 (0)