Oxford University Press Text Capture Instructions

 

Medicine family: Capturing ranges in cross-references

Where ranges appear in the text, capture the cross reference to the start of the range and to the end of the range. That is in the xrefGrp capture two xref elements. For page ranges, capture two pageNum children, each pageNum containing an xref in the xrefGrp.

This topic is intended for all cross-references that may occur in OxMed. It includes (but is not limited to) page, figures, tables, boxedMatter, and chapter references.

Capture the value of the id of the division (if a page range) the chapter, the figure, the table, or the boxedMatter cited in the range as the value of the ref attribute on the xref.

For page ranges or chapter references, if the end page number has been shortened, expand it to its full value. To identify the ref attribute value for the end page xref element, search backwards from the bottom of the end page until you find a division heading. If the end page does not contain a division, keep searching previous pages until you find one.

Suggested search terms for page number ranges

$contextNode = $endPagePI/following::processing-instruction('Page')[1]

$precedingDiv = $contextNode/preceding::*[self::div1 or self::div2 or self::div3 or self::div4 or self::div5 or self::div6 or self::div7 or self::divN][1]

$ancestorDiv = $contextNode/ancestor::*[self::div1 or self::div2 or self::div3 or self::div4 or self::div5 or self::div6 or self::div7 or self::divN][1]

$refAttr = nearest div out of $precedingDiv and $ancestorDiv

See Figures 8.12-8.14

<xrefGrp>See Figures <xref ref="med-9780198565734-chapter-8-figureGroup-12">8.12</xref>-<xref ref="med-9780198565734-chapter-8-figureGroup-14">8.14</xref>
</xrefGrp>
See pp. 320-5

<xrefGrp>See pp. <pageNum pageId="320">
<xref ref="med-9780198565734-chapter-2-milestone-320">320</xref>
</pageNum>-<pageNum pageId="325">
<xref ref="med-9780198565734-chapter-2-milestone-325">325</xref>
</pageNum>
</xrefGrp>
Release ID:
20261202
ID:
Oxford_Medicine_Online_TCI_topic_5
Author:
dunnm
Last changed:
Wed, 04 Jun 2025
Modified by:
buckmasm
Revision#:
4400