Database Reference
In-Depth Information
results in:
<greeting>Hi there stranger!</greeting>
Note that the default value of stranger is provided in the response because we did
not specify a name URI query parameter.
Alternatively, the following:
curl -v http://localhost:8080/exist/restxq/hello?name = Adam
results in:
<greeting>Hi there Adam!</greeting>
A more complete example of using RESTXQ can be seen in “RESTXQ” on page 353 .
RESTXQ XQuery Extension Functions
RESTXQ attempts to take a minimal approach to providing extensions to XQuery, so
it currently defines only three external XQuery functions:
rest:base-uri() as xs:anyURI
Returns the base URI of the RESTXQ Server
rest:uri() as xs:anyURI
Returns the URI of the HTTP request that led to the resource function being
invoked
rest:resource-functions() as document-node(element(rest:resource-
functions))
Returns an XML document describing the resource functions that are known to
the RESTXQ Server
Packaging
Once an application or library is finished, there is often a need to distribute it to oth‐
ers. For instance, something for the public should be easily distributable to and
installable by everyone who wants to download and use it. Likewise more often than
not, private applications need some kind of distribution too—for instance, moving
from a development server to the test server, and after that to production.
To aid in this, eXist can work with packages . A package is an application (or library)
bundled into a single archive ZIP file, together with machine-processable informa‐
tion on how to distribute and install it. You can work with packages through eXist's
Package Repository , a core component of eXist since version 2.0. The Package Reposi‐
tory can install/uninstall, update, and launch packages.
Search WWH ::




Custom Search