This isn't a specific TEI question, but some of the people on this list
presumably have done this already, so here it goes.
We're putting our texts into the eXist database. We want to be able
to show one page of the original text at the time, so we'll be needing
an XQuery expression to retrieve the specific portion of a text, namely
between two specific <pb/>'s. Problems arise when the <pb/> fall in
the middle of another element, say, a <p>. There might also be a
<div>-break on the middle of the page, etc.
If anyone has had any experience with this sort of thing, perhaps you've
got some advise or pointers (or solutions!) to share?