XSL-FO Listen
XSL-FO verwendet das Element <fo:list-block>, um Listen zu definieren.
XSL-FO-Listenblöcke
Es gibt vier XSL-FO-Objekte, mit denen Listen erstellt werden:
- fo:list-block (enthält die gesamte Liste) (enthält die gesamte Liste)
- fo:list-item (enthält jedes Element in der Liste) (enthält jedes Element in der Liste)
- fo:list-item-label (enthält die Beschriftung für list-item - normalerweise ein <fo:block>, das eine Zahl oder ein Zeichen enthält)
- fo:list-item-body (enthält den Inhalt/Body von list-item - normalerweise ein oder mehrere <fo:block>-Objekte)
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>
Die Ausgabe des obigen Codes lautet:
|
* Volvo * Saab |
Andere Erweiterungen