May 28, 2021 XSL-FO
The object contains the content/body of the list-item - usually one or more objects.
Here are four XSL-FO objects for creating lists:
<fo:list-item-body>
<!--
Contents:(block|block-container|
table-and-caption|table|list-block|
list-item)+
-->
</fo:list-item-body>
Attributes |
---|
id |
keep-together |
role |
source-document |
An example of an XSL-FO list:
<fo:list-block>
<fo:list-item>
<fo:list-item-label>
<fo:block>*</fo:block>
</fo:list-item-label>
<fo:list-item-body>
<fo:block>Volvo</fo:block>
</fo:list-item-body>
</fo:list-item>
<fo:list-item>
<fo:list-item-label>
<fo:block>*</fo:block>
</fo:list-item-label>
<fo:list-item-body>
<fo:block>Saab</fo:block>
</fo:list-item-body>
</fo:list-item>
</fo:list-block>
The above code will output:
* Volvo * Saab |