This gist was prompted by a question on the eXist-open mailing list. See http://markmail.org/message/zudf7qp4pqjx6xhi.
To run these files:
- Download this gist as a .zip file
- Uncompress the .zip file
- Create collection
/db/test
in eXist - Upload the contents of the zip file into the
/db/test
collection - Reindex
/db/test
withxmldb:reindex("/db/test")
- Run
/db/test/test.xq
- The result should match that of the
test_results.xml
file included here.