XSL-FO Lists
XSL-FO provides four elements for creating lists with customizable labels and content, all of which PdfBroker.io supports when rendering your documents to PDF.
List Elements
| Element | Purpose |
|---|---|
<fo:list-block> |
Container for the entire list |
<fo:list-item> |
Individual list entry |
<fo:list-item-label> |
The bullet, number, or label |
<fo:list-item-body> |
The content of the list item |
Example
<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>
This produces a bulleted list:
- Volvo
- Saab
Tip
List labels can contain any content, not just bullets. You can use numbers, Font Awesome icons, or custom graphics. See the Font Awesome demo for an example with icon bullets.