Float groups (figures, tables, media, or boxed-matter)
Capture figure, table, media, or boxed-matter floating elements in floatGroup elements within the same section as their position in the text, and mark the position in the text of each one using a processing instruction. Processing instructions must be captured in their own p element.
//floatGroup
Placement processing instruction XPath:
//processing-instruction('Insert-Figure')
//processing-instruction('Insert-Media')
//processing-instruction('Insert-Table')
//processing-instruction('Insert-boxedMatter')
For float groups, consider a section of content to be any of:
- div[1-7,N]
- chapter
- e
- partFrontMatter
- sectionFrontMatter
Further elements that form sections for float groups, but only when they are a direct child of part or section:
- titleGroup
- miscMatterGroup
- appendixGroup
- indexGroup
- bibliographyGroup
Capture floating objects including boxed matter, figures, and tables within a floatGroup element.
Capture floatGroup elements at the lowest-level section in the XML structure which contains a processing instruction reference to the floating object.
For example, if an e contains divisions levels, capture the floatGroup as a child of the same divN in which the processing instruction is placed. If an e does not contain any division levels, capture the floatgroup as a child of e.
Capture the reference to a floating object using an <?Insert- ...?>
processing instruction with an ID value the same as the id attribute of the
target. For example:
<p><?Insert-Figure ID="acref-9780192831934-figureGroup-1"?></p>
Processing instructions that reference a floating object must satisfy the following requirements:
- It must be the child of a p element
- The processing instruction may have no other siblings within its parent p, even other <?Insert- ...?> or <? Page ... ?> processing instructions. It must be captured within its own p element.
- The parent p element may not be a descendant of a list.
- The parent p element may not be a descendant of a titleGroup.
For Law Trove and ORR, capture the processing instruction within the same page as it appears in the voucher PDF, following the general instructions for capturing processing instructions within their own p element (as detailed above). If the processing instruction appears in the middle of a paragraph, the processing instruction should be moved to a new p element as the first sibling of the paragraph it sits within in the voucher PDF.
For all other content (frontlist) where the placement of the item is indicated in an author manuscript, capture the processing instruction as the first sibling p element of the paragraph immediately before the placement indicator (PMI).
For all other content (backlist) capture the processing instruction in a new p element after the paragraph which contains the first call-out cross reference to the floatGroup item. If there are not any call-outs, capture the processing instruction in a new p element after the the paragraph it sits within on the voucher PDF.
Position of floatGroup and processing instruction
<div1 id="med-9780199570249-chapter-1-div1-50">
<titleGroup id="med-9780199570249-chapter-1-titleGroup-120"><title>
<p><!-- title of section --></p></title>
</titleGroup>
<p><?Insert-Figure ID="med-9780199570249-chapter-1-figureGroup-18"?></p>
<p><!-- some more text --></p>
<floatGroup id="med-9780199570249-chapter-1-floatGroup-2"><figureGroup id="med-9780199570249-chapter-1-figureGroup-18">
<figure id="med-9780199570249-chapter-1-figure-18">
<graphic sysId="med-9780199570249-graphic-018.gif" id="med-9780199570249-chapter-1-graphic-18"/>
<caption>
<p><!-- caption text --></p>
</caption>
</figure></figureGroup>
</floatGroup>
</div1>