XSL-FO List

XSL-FO gebruikt List Block om lijsten te definiëren.

XSL-FO Lijstblok

Er zijn vier XSL-FO objecten die kunnen worden gebruikt om lijsten te maken:

fo:list-block
Bevat de hele lijst.
fo:list-item
Bevat elk item in de lijst.
fo:list-item-label
Bevat de markup voor list-item - typisch, bevat een cijfer of letter van <fo:block> .
fo:list-item-body
Bevat de inhoud of content van list-item - typisch, een of meerdere <fo:block> objecten.

Een voorbeeld van een XSL-FO-lijst:

<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>

Output of the above code: