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/testin eXist - Upload the contents of the zip file into the
/db/testcollection - Reindex
/db/testwithxmldb:reindex("/db/test") - Run
/db/test/test.xq - The result should match that of the
test_results.xmlfile included here.