XML technologies / XSL-FO / Reference / Elements in XSL-FO / fo:list-item-body
(Excerpt from "XSL-FO ― Die Referenz" by Manuel Montero Pineda & Steffen Herkert, 2016, dpunkt.verlag)
A | B | C | D | E | F | G | H | I | J | K | L | M | N | O | P | Q | R | S | T | U | V | W | X | Y | Z
Recommendation section: 6.8.4
Category: 6.8 Formatting Objects for Lists
Description
This element contains the body of the list item, the area for its text content.
XSL-FO version: 1.0
Parent elements
This element contains both the label information and the body of a list item. |
Child elements
This element creates a rectangular area that allows many kinds of elements, such as tables, lists and graphics. Attributes can be used to configure various aspects of its appearance. Blocks can be nested to any depth. Information from parent blocks is inherited unless different settings are specified for the child block (inheritance). | |
A block container can group any number of blocks. Attributes can be used to specify the container’s desired position in the document. | |
This element marks the start of a "change region", which is ended by its matching fo:change-bar-end. The change region has a change bar running along either the start or end edge of the column. The change bar’s appearance is determined by the values of the corresponding properties. | |
This element marks the end of a "change region" started by its matching fo:change-bar-begin. | |
This element positions content relative to a display block, for example to wrap text around graphics or create marginal notes. | |
This element marks the start of an "indexed range" associated with an index key. The range is closed by a corresponding fo:index-range-end. | |
This element marks the end of an "indexed range" started by its matching fo:index-range-begin. | |
This element creates an area for displaying a list or enumeration. | |
This element allows switching between different sets of properties. | |
This element allows switching between different subtrees of formatting objects. | |
This element retrieves the area marked in <fo:marker>, for example for running headings. | |
Together with <fo:marker>, this element allows areas in tables to be repeated. | |
This element creates a table. | |
This element creates a table with a caption above or below it. | |
Properties for a group of formatting objects can be specified in <fo:multi-properties>. |
Attributes
This attribute uniquely identifies an object so that other objects can reference it. | |
This attribute defines an index class for individual index entries (index-key) or an entire area. All index entries in that area belong to the class. When referencing index entries (fo:index-key-reference) belonging to different classes, their page numbers are listed separately even if they are consecutive. For example, "1-8" becomes "1-4,5-8" if entries on pages 1-4 belong to one class and pages 5-8 to another. This is useful when pages are grouped into sections with different numbering systems. A range such as "I-14" can thus be avoided and replaced with "I-V,1-14". | |
This attribute defines an index entry. The supplied value is used as the entry’s identifier. An index entry reference (fo:index-key-reference) can reference all entries with this identifier and add their page numbers to a page citation list (fo:index-page-citation-list). | |
This attribute prevents line, column or page breaks within the marked area. It can be refined using the component attributes keep-together.within-line (for line breaks), keep-together.within-column (for column breaks) and keep-together.within-page (for page breaks). Specifying keep-together alone is equivalent to setting all three components to the same value. If keep-together is combined with one component, it applies to the other two. A priority can also be assigned to resolve a conflicting instruction, such as a page-break-after instruction within the area. | |
This attribute prevents column breaks within the marked area and overrides the general keep-together setting. A priority can resolve conflicting instructions, such as page-break-after within the area. | |
This attribute prevents line breaks within the marked area and overrides the general keep-together setting. A priority can resolve conflicting instructions, such as page-break-after within the area. | |
This attribute prevents page breaks within the marked area and overrides the general keep-together setting. A priority can resolve conflicting instructions, such as page-break-after within the area. | |
This attribute controls a potential page break within the marked area. It can prohibit page breaks there. To avoid a prohibited break, the entire area is moved to the next page. | |
This attribute creates content-related identifiers that provide alternative output devices, such as audio output, with information about the XML element’s content. | |
This attribute identifies an XML document as the source document. If the renderer cannot interpret the FO document, for example for a hypothetical speech output, the source document can also be consulted. It has no practical significance. |
Support:
Conformance level | Antenna House | FOP | RenderX XEP | Altsoft XML2PDF | Compart DocBridge |
Basic | Y | Y | Y | Y | Y |
XSL-FO example:
<fo:root font-family="Arial" font-size="10pt" line-height="1.2em" xmlns:fo="http://www.w3.org/1999/XSL/Format" xmlns:cpfo="http://www.compart.net/xmlns/cpfo" xmlns:svg="http://www.w3.org/2000/svg" xmlns:axf="http://www.antennahouse.com/names/XSL/Extensions">
<fo:layout-master-set>
<fo:simple-page-master master-name="Inhalt-Seiten.kopf" margin="0mm 0mm 0mm
0mm" page-height="150mm" page-width="148mm">
<fo:region-body margin="10mm 15mm 10mm
25mm"/>
</fo:simple-page-master>
<fo:page-sequence-master master-name="Inhalt-Seiten">
<fo:repeatable-page-master-alternatives>
<fo:conditional-page-master-reference master-reference="Inhalt-Seiten.kopf"/>
</fo:repeatable-page-master-alternatives>
</fo:page-sequence-master>
</fo:layout-master-set>
<fo:page-sequence master-reference="Inhalt-Seiten" font-size="10pt">
<fo:flow flow-name="xsl-region-body">
<fo:block text-align="justify" font-size="15pt">
<fo:list-block provisional-distance-between-starts="10mm" end-indent="10mm" start-indent="10mm">
<fo:list-item>
<fo:list-item-label end-indent="label-end()">
<fo:block>
1.
</fo:block>
</fo:list-item-label>
<fo:list-item-body start-indent="body-start()">
<fo:block>
Bodytext
Bodytext Bodytext Bodytext Bodytext Bodytext Bodytext Bodytext Bodytext
</fo:block>
</fo:list-item-body>
</fo:list-item>
<fo:list-item>
<fo:list-item-label end-indent="label-end()">
<fo:block>
2.
</fo:block>
</fo:list-item-label>
<fo:list-item-body start-indent="body-start()">
<fo:block>
Bodytext
Bodytext Bodytext Bodytext Bodytext Bodytext Bodytext Bodytext Bodytext
</fo:block>
</fo:list-item-body>
</fo:list-item>
<fo:list-item>
<fo:list-item-label end-indent="label-end()">
<fo:block/>
</fo:list-item-label>
<fo:list-item-body start-indent="body-start()">
<fo:list-block provisional-distance-between-starts="10mm">
<fo:list-item>
<fo:list-item-label end-indent="label-end()">
<fo:block>
2.1
</fo:block>
</fo:list-item-label>
<fo:list-item-body start-indent="body-start()">
<fo:block>
Bodytext
Bodytext Bodytext Bodytext Bodytext Bodytext Bodytext Bodytext Bodytext
</fo:block>
</fo:list-item-body>
</fo:list-item>
</fo:list-block>
</fo:list-item-body>
</fo:list-item>
</fo:list-block>
</fo:block>
</fo:flow>
</fo:page-sequence>
</fo:root>More information online about
Introduction: "Lists, enumerations and description lists">
In the output:
Excerpt from the W3C Recommendation: