io7m
io7m-jstructural 4.1.0
5.18
part-contents
5.18.1
Description
1
The part-contents element specifies that a table of contents should be generated for the given part.
5.18.2
Processing
1
The table of contents appears at the start of the parent part and contains references to all the children of that element.
5.18.3
CSS
1
In addition to any classes specified by the type attribute, the main list structure is assigned the class st200_part_contents.
2
The XHTML lists that are generated as children of the lists generated for document-contents elements are assigned CSS as if they were generated from part-contents elements. In order to correctly indent elements in CSS, it's necessary to be able to distinguish between lists that were generated as part of a part-contents element, and lists that were generated as children of those generated as part of a document-contents element. In other words, it's desirable to be able to indent the list differently if it is the "outermost" list. Therefore, the main list structure is also assigned the class st200_part_contents_outer if it is appearing in XHTML due to a part-contents element.
3
Each element of the list is assigned the class st200_contents_item in addition to one of st200_contents_item1, st200_contents_item2 or st200_contents_item3 depending on the depth of the item in the list. The root part element of the list is assigned the class st200_contents_part and all section and subsection elements appearing in the list are assigned the classes st200_contents_section and st200_contents_subsection, respectively.