Liste XSL-FO
- Page précédente Bloc XSLFO
- Page suivante Tableau XSLFO
XSL-FO utilise le bloc de liste (List Block) pour définir une liste.
Bloc de liste XSL-FO
Il y a quatre types d'objets XSL-FO pour créer des listes :
- fo:list-block
- Contient l'ensemble de la liste.
- fo:list-item
- Contient chaque élément de la liste.
- fo:list-item-label
- Contient les balises utilisées pour list-item - généralement, contient un chiffre ou un caractère dans un <fo:block>.
- fo:list-item-body
- Contient le corps ou le contenu de list-item - généralement, un ou plusieurs objets <fo:block>.
Exemple de liste XSL-FO :
<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>
Sortie du code suivant :

- Page précédente Bloc XSLFO
- Page suivante Tableau XSLFO