XSL-FO Lists
XSL-FO uses fo:list-block element to define a list.
XSL-FO List Blocks
There are four XSL-FO objects that can be used to create lists:
- fo:list-block (contains the whole list)
- fo:list-item (contains each item in the list)
- fo:list-item-label (contains the label for the list-item - typically, contains a number or character fo:block )
- fo:list-item-body (contains the content/body of the list-item - typically, one or more fo:block object)
An XSL-FO list example:
fo:blockVolvo
fo:blockSaab
The output of the code above is shown below:
| * Volvo
* Saab | | --- |