XSL-FO list-item-bodyObjekt
XSL-FO-Referenzhandbuch
Definition und Verwendung
Das <fo:list-item-body>-Objekt enthält den Inhalt/Körper des Listenelements – normalerweise ein oder mehrere <fo:block>-Objekte.
Im Folgenden werden vier XSL-FO-Objekte aufgeführt, die zum Erstellen von Listen verwendet werden:
- fo:list-block (enthält die gesamte Liste)
- fo:list-item (enthält jedes Element in der Liste)
- fo:list-item-label (enthält die Beschriftung des Listenelements - normalerweise enthält <fo:block> Zahlen, Zeichen usw.)
- fo:list-item-body (enthält den Inhalt/Körper des Listenelements - normalerweise ein oder mehrere <fo:block>-Objekte)
Syntax
<fo:list-item-body>
<!--
Inhalt:(block|block-container|
table-and-caption|table|list-block|
list-item)+
-->
</fo:list-item-body>
<!--
Inhalt:(block|block-container|
table-and-caption|table|list-block|
list-item)+
-->
</fo:list-item-body>
Attribute
| Attribute |
|---|
| id |
| keep-together |
| role |
| source-document |
Beispiel 1
Ein XSL-FO-Listenbeispiel:
<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>
Der obige Code gibt Folgendes aus:
|
* Volvo * Saab |
XSL-FO Referenzhandbuch Weitere Erweiterungen