XSL-FO flowObjekt
XSL-FO-Referenzhandbuch
Definition und Verwendung
Der Inhalt des <fo:flow>-Objekts füllt die XSL-FO-Seite.
Das <fo:flow>-Objekt enthält alle Elemente, die auf der Seite gedruckt werden sollen.
Wenn die Seite voll ist, wird dieselbe Masterseite wiederverwendet, bis der gesamte Text gedruckt ist.
Das <fo:flow>-Objekt hat ein "flow-name"-Attribut, das festlegt, wohin der Inhalt gelangt.
Syntax
<fo:flow>
<!--
Inhalt:(block|block-container|
table-and-caption|table|
list-block)+
-->
</fo:flow>
<!--
Inhalt:(block|block-container|
table-and-caption|table|
list-block)+
-->
</fo:flow>
Attribute
| Attribute |
|---|
| flow-name |
Beispiel 1
Ein "echtes" XSL-FO-Beispiel:
<?xml version="1.0" encoding="ISO-8859-1"?>
<fo:root xmlns:fo="http://www.w3.org/1999/XSL/Format">
<fo:layout-master-set>
<fo:simple-page-master master-name="A4">
</fo:simple-page-master>
</fo:layout-master-set>
<fo:page-sequence master-reference="A4">
<fo:flow flow-name="xsl-region-body">
<fo:block>Hallo BEISPIEL</fo:block>
</fo:flow>
</fo:page-sequence>
</fo:root>
<fo:root xmlns:fo="http://www.w3.org/1999/XSL/Format">
<fo:layout-master-set>
<fo:simple-page-master master-name="A4">
</fo:simple-page-master>
</fo:layout-master-set>
<fo:page-sequence master-reference="A4">
<fo:flow flow-name="xsl-region-body">
<fo:block>Hallo BEISPIEL</fo:block>
</fo:flow>
</fo:page-sequence>
</fo:root>
Die Ausgabe des obigen Codes ist unten dargestellt:
| Hallo BEISPIEL
|
XSL-FO Referenzhandbuch Weitere Erweiterungen