> (1) My result set for each query is a <tei:entry/> with multiple
> <tei:cit/>'s (one for each time the word appears in the text). I need
> metadata about the search in order to construct a useful HTML interface,
> and metadata implies a <teiHeader/> to my mind, but I've had real
> difficulty constructing a <teiHeader/> for a result set. Has anyone else
> come up with a satisfying solution to this?
For the sake of completeness, here is what I have settled on for the teiHeader for this. This is at http://localhost:8081/exist/he_kupu_tawhito/kupu.xql?reo=mi&kupu=mohio but the quesy can't see the first couple of components of that.
<titleStmt> Rapunga: mohio</titleStmt>
<ref target="https://github.com/stuartyeates/He-Kupu-Tawhito">He Kupu Tawhito</ref>
Library Technology Services http://www.victoria.ac.nz/library/