XSL-FO list-item-Label-Objekte
Definition und Verwendung
<Fo: list-item-label> Objekt enthält eine Liste Punkt Etiketten - Normalerweise <fo: block> enthalten Zahlen, Zeichen, und so weiter.
Hier sind vier XSL-FO-Objekte verwendet, um eine Liste zu erstellen:
- fo: list-Block (enthält die komplette Liste)
- fo: list-item (enthält eine Liste der einzelnen Elemente)
- fo: list-item-Label (Etikett enthält die Liste Punkt - Unter normalen Umständen <fo: block> enthalten Zahlen, Zeichen, etc.)
- fo: list-item-Körper (enthält den Inhalt der list-item / Körper - in der Regel ein oder mehrere <fo: block> Object)
Grammatik
<fo:list-item-label>
<!--
Contents:(block|block-container|
table-and-caption|table|list-block|
list-item)+
-->
</fo:list-item-label>
<!--
Contents:(block|block-container|
table-and-caption|table|list-block|
list-item)+
-->
</fo:list-item-label>
Immobilien
属性 |
---|
id |
keep-together |
role |
source-document |
Beispiel 1
XSL-FO eine Liste von Beispielen:
<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:
Volvo * Saab |
XSL-FO - Referenzhandbuch