XML technologies / XSL-FO / Reference / Elements in XSL-FO / fo:static-content
(Excerpt from "XSL-FO ― Die Referenz" by Manuel Montero Pineda & Steffen Herkert, 2016, dpunkt.verlag)
A | B | C | D | E | F | G | H | I | J | K | L | M | N | O | P | Q | R | S | T | U | V | W | X | Y | Z
Recommendation section: 6.4.20
Category: 6.4 Declarations and Pagination and Layout Formatting Objects
Description
This element contains information about formatting objects that can be applied on every page or on a specific number of pages, for example space for Footnotes, running headings).
XSL-FO version: 1.0
Parent elements
This element defines how page sequences are used within a document. It also embeds the document content in the page sequence. |
Child elements
This element creates a rectangular area that allows many kinds of elements, such as tables, lists and graphics. Attributes can be used to configure various aspects of its appearance. Blocks can be nested to any depth. Information from parent blocks is inherited unless different settings are specified for the child block (inheritance). | |
A block container can group any number of blocks. Attributes can be used to specify the container’s desired position in the document. | |
This element marks the start of a "change region", which is ended by its matching fo:change-bar-end. The change region has a change bar running along either the start or end edge of the column. The change bar’s appearance is determined by the values of the corresponding properties. | |
This element marks the end of a "change region" started by its matching fo:change-bar-begin. | |
This element positions content relative to a display block, for example to wrap text around graphics or create marginal notes. | |
This element marks the start of an "indexed range" associated with an index key. The range is closed by a corresponding fo:index-range-end. | |
This element marks the end of an "indexed range" started by its matching fo:index-range-begin. | |
This element creates an area for displaying a list or enumeration. | |
This element allows switching between different sets of properties. | |
This element allows switching between different subtrees of formatting objects. | |
This element retrieves the area marked in <fo:marker>, for example for running headings. | |
Together with <fo:marker>, this element allows areas in tables to be repeated. | |
This element creates a table. | |
This element creates a table with a caption above or below it. | |
Properties for a group of formatting objects can be specified in <fo:multi-properties>. |
Attributes
This attribute names a static area (fo:static-content) or a flow area (fo:flow). This name assigns the content to the corresponding regions (fo:region-before, fo:region-after, fo:region-start, fo:region-end, fo:region-body) or, for flow areas only, to the designated region in a fo:flow-map. | |
This attribute uniquely identifies an object so that other objects can reference it. | |
This attribute defines an index class for individual index entries (index-key) or an entire area. All index entries in that area belong to the class. When referencing index entries (fo:index-key-reference) belonging to different classes, their page numbers are listed separately even if they are consecutive. For example, "1-8" becomes "1-4,5-8" if entries on pages 1-4 belong to one class and pages 5-8 to another. This is useful when pages are grouped into sections with different numbering systems. A range such as "I-14" can thus be avoided and replaced with "I-V,1-14". | |
This attribute defines an index entry. The supplied value is used as the entry’s identifier. An index entry reference (fo:index-key-reference) can reference all entries with this identifier and add their page numbers to a page citation list (fo:index-page-citation-list). |
Support:
Conformance level | Antenna House | FOP | RenderX XEP | Altsoft XML2PDF | Compart DocBridge |
Extended | Y | Y | Y | Y | Y |
XSL-FO example:
<fo:root>
<fo:layout-master-set>
<fo:simple-page-master margin="0mm 0mm 0mm
0mm" master-name="Inhalt-Seiten" page-height="297mm" page-width="210mm">
<fo:region-body margin="140mm 0mm 0mm
0mm"/>
<fo:region-before region-name="Inhalt-rechts-davor" extent="25mm" display-align="center" background-color="grey" border-after-style="solid" border-after-width="2mm" precedence="true"/>
<fo:region-after region-name="Inhalt-rechts-danach" extent="30mm" display-align="center" background-color="grey" border-before-style="solid" border-before-width="2mm" precedence="true"/>
<fo:region-start region-name="Inhalt-rechts-start" extent="30mm" display-align="center" background-color="grey" border-end-style="solid" border-end-width="2mm"/>
<fo:region-end region-name="Inhalt-rechts-end" extent="30mm" background-color="grey" border-start-style="solid" border-start-width="1mm" display-align="center"/>
</fo:simple-page-master>
</fo:layout-master-set>
<fo:page-sequence master-reference="Inhalt-Seiten">
<fo:static-content flow-name="Inhalt-rechts-davor">
<fo:block text-align="center" font-size="25pt" font-weight="bold">
region-before
</fo:block>
</fo:static-content>
<fo:static-content flow-name="Inhalt-rechts-start">
<fo:block-container reference-orientation="90" display-align="center">
<fo:block text-align="center" font-size="25pt" font-weight="bold">
region-start
</fo:block>
</fo:block-container>
</fo:static-content>
<fo:static-content flow-name="Inhalt-rechts-end">
<fo:block-container reference-orientation="90" display-align="center">
<fo:block text-align="center" font-size="25pt" font-weight="bold">
region-end
</fo:block>
</fo:block-container>
</fo:static-content>
<fo:static-content flow-name="Inhalt-rechts-danach">
<fo:block text-align="center" font-size="25pt" font-weight="bold">
region-after
</fo:block>
</fo:static-content>
<fo:flow flow-name="xsl-region-body">
<fo:block text-align="center" font-size="25pt" font-weight="bold">
region-body
</fo:block>
</fo:flow>
</fo:page-sequence>
</fo:root>More information online about
Practical example: "Page masters and simple page sequence masters">
Practical example: "Complex page sequence masters">
In the output:
Excerpt from the W3C Recommendation: