XSL-FO-Liste
XSL-FO mit <fo: list-Block> Element der Liste zu definieren.
XSL-FO-Sperrliste (List Blocks)
Es gibt vier XSL-FO-Objekte verwendet, um eine Liste zu erstellen:
- fo: list-Block (enthält die komplette Liste) (enthält die gesamte Liste)
- fo: list-item (enthält eine Liste der einzelnen Elemente) (enthält jedes Element in der Liste)
- fo: list-item-Etikett (für list-Element enthält das Etikett - enthalten in der Regel eine Zahl oder ein Zeichen des <fo: block>)
- fo: list-item-Körper (enthält den Inhalt der list-item / Körper - in der Regel ein oder mehrere <fo: block> Object)
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>
Die Ausgabe des Codes ist oben, wie folgt:
Volvo * Saab |