XSL-FO list-item-labelObjets
Manuel de référence XSL-FO
Définition et utilisation
L'objet <fo:list-item-label> contient l'étiquette de l'élément de liste - généralement, le <fo:block> contient des nombres, des caractères, etc.
Ce qui suit répertorie quatre objets XSL-FO utilisés pour créer des listes :
- fo:list-block (contient la liste entière)
- fo:list-item (contient chaque élément de la liste)
- fo:list-item-label (contient l'étiquette de l'élément de liste - généralement, <fo:block> contient des nombres, des caractères, etc.)
- fo:list-item-body (contient le contenu/corps de l'élément de liste - généralement un ou plusieurs objets <fo:block>)
Syntaxe
<fo:list-item-label>
<!--
Contenu :(block|block-container|
table-and-caption|table|list-block|
list-item)+
-->
</fo:list-item-label>
<!--
Contenu :(block|block-container|
table-and-caption|table|list-block|
list-item)+
-->
</fo:list-item-label>
Attributes
| Attributes |
|---|
| id |
| keep-together |
| rôle |
| source-document |
Exemple 1
Un 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>
<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>
Le code ci-dessus affichera :
|
* Volvo * Saab |
Manuel de référence XSL-FO Autres extensions