README

Author: Franz Schenk

Technology

The XQuery demo servlet is implemented as a simple web service, built upon the Saxon XQuery engine.

This software is meant to be used for demonstration purposes. The servlet can be downloaded locally (Informatik, University of Goettingen) in form of a war file archive from /afs/informatik.uni-goettingen.de/course/xml-lecture/XML-Tools/xquery-demo.war.

Predefined Documents

There are two predefined documents that can be used as context documents for the query engine:

Mondial:   Mondial Webpage
Hamlet:   This and other well-known plays by Shakespeare in XML can be found here.

Furthermore, it is possible to use other context documents by specifying a URL. The query engine will try to load the input document from the given URL.

For using the mondial or hamlet document in xqueries (as a context element) it is sufficient to use mondial.xml as the document address (instead of the whole URL). E.g.

for $i in doc("mondial.xml")//country return $i/name