XSL-FO List
XSL-FO uses the <fo:list-block>
element to define lists.
XSL-FO List Blocks
There are four XSL-FO objects 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 list-item - typically, a <fo:block> with a number or character)
- fo:list-item-body (contains the content/body of list-item - typically, one or more <fo:block> objects)
An example of an XSL-FO list:
The output of the above code is as follows:
| * Volvo <br>* Saab <br> |