I have a corpus in TEI-XML which uses a 'master' corpus XML document that then contains, via xi:include
, thousands of other documents. Each of these documents themselves contain xi:include
s to master lists of named entities (people, places, etc linked by xml:id
s) . All of this works very well in XSLT (and in my IDE Oxygen for fast encoding).
I am now embarking on building a website using eXist-DB applications. I am rewriting everything directly in Xquery (to replace XSLT), and I have hit upon an unexpected decision. I am used to using xi:includes
to traverse the corpus and the various XMLs files. But reading the documentation of eXist DB, it seems that the encouraged practice is to use collections and query them directly, instead of navigating via xi:include
s. It also seems that eXist-DB does not support the full implementation of xi:includes
anyway and requires some work arounds?
I am looking for guidance as to best practices of eXist-DB/Xquery in this context.
Many thanks in advance.