I'm trying to find the best way to encode a reference to a span of
pages (e.g., "pp. 8-12"), but I think this question is more
fundamentally one about how to define and refer to spans within a text
(e.g., a span from one @xml:id-laden element to another).
Section 220.127.116.11 of the Guidelines
suggests using range() with an XPointer expression, but I couldn't
find any examples of this usage in the Guidelines, the XPointer spec,
or the list archives. Here is how I'm thinking of approaching this:
Given a text where pages 8 and 12 were identified as:
The link to the span of these elements would be:
<ref target="#xpointer(range(pg-8, pg-12))">pp. 8-12</ref>
or, if I wanted to ensure the range included all of page 12:
<ref target="#xpointer(range(pg-8, pg-13))">pp. 8-12</ref>
Thanks in advance for confirming / denying / correcting this syntax.
p.s. I've ruled out these naive approaches:
pp. <ref target="#pg-8">8</ref>-<ref target="#pg-12">12</ref>
This is simply a pair of links, to page 8 and page 12, not to the span
of pages 8 through 12 inclusive. Similarly:
<ref target="#pg-8 #pg-12">pp. 8-12</ref>
This isn't much better, since nothing here states "from #pg-8 to #pg12".