XML-Technologien / XSL-FO / Referenz / Attribute in XSL-FO / caption-side

(Auszug aus "XSL-FO ― Die Referenz" von 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

Recommendationnummer: 7.28.7

Kategorie: 7.28 Table Properties

Beschreibung

Für eine Tabelle des Typs <fo:table-and-caption> lässt sich die Positionierung des Tabellentitels festlegen, der (optional) im Unterelement <fo:table-caption> angegeben ist.

Werte

before

Der Tabellentitel wird oberhalb der Tabelle angezeigt.

after

Der Tabellentitel wird unterhalb der Tabelle angezeigt.

start

Der Tabellentitel wird links von der Tabelle angezeigt.

end

Der Tabellentitel wird rechts von der Tabelle angezeigt.

top

Der Tabellentitel wird oberhalb der Tabelle angezeigt.

bottom

Der Tabellentitel wird unterhalb der Tabelle angezeigt.

left

Der Tabellentitel wird links von der Tabelle angezeigt.

right

Der Tabellentitel wird rechts von der Tabelle angezeigt.

Vererbt:

ja

Standardwert: before

XSL-FO Version: 1.0

Erlaubt in:

<fo:table-and-caption>

Dieses Element erzeugt eine Tabelle samt Tabellenüber- oder -unterschrift.

Unterstützung:

Conformance Level

Antenna House

FOP

RenderX XEP

Altsoft XML2PDF

Compart DocBridge

Complete

J

N

J

J

N

XSL-FO Beispiel:

<fo:root font-family="Arial" font-size="10pt" line-height="1.2em" xmlns:fo="http://www.w3.org/1999/XSL/Format" xmlns:cpfo="http://www.compart.net/xmlns/cpfo" xmlns:svg="http://www.w3.org/2000/svg" xmlns:axf="http://www.antennahouse.com/names/XSL/Extensions">
<fo:layout-master-set>
<fo:simple-page-master master-name="Inhalt-Seiten" margin="0mm 0mm 0mm
                      0mm" page-height="297mm" page-width="210mm">
<fo:region-body margin="26mm 35mm 41mm
                        35mm"/>
<fo:region-after extent="20mm" region-name="fuß" display-align="center"/>
</fo:simple-page-master>
</fo:layout-master-set>
<fo:page-sequence master-reference="Inhalt-Seiten">
<fo:static-content flow-name="fuß">
<fo:block text-align="center">
- 
<fo:page-number/>
 -
</fo:block>
</fo:static-content>
<fo:flow flow-name="xsl-region-body" text-align="center">
<fo:table-and-caption table-layout="fixed" caption-side="before">
<fo:table-caption width="70mm">
<fo:block background-color="#F38222">
caption-side="top" | caption-side="before"
</fo:block>
</fo:table-caption>
<fo:table width="90mm">
<fo:table-header font-weight="bold">
<fo:table-row>
<fo:table-cell text-align="center" border="black solid
                      1pt">
<fo:block>
Kopfzeile Spalte
                1
</fo:block>
</fo:table-cell>
<fo:table-cell text-align="center" border="black solid
                      1pt">
<fo:block>
Kopfzeile Spalte 2
</fo:block>
</fo:table-cell>
<fo:table-cell text-align="center" border="black solid
                      1pt">
<fo:block>
Kopfzeile Spalte
                3
</fo:block>
</fo:table-cell>
</fo:table-row>
</fo:table-header>
<fo:table-body>
<fo:table-row>
<fo:table-cell text-align="center" border="black solid
                      1pt">
<fo:block>
Zeile 1 Spalte 1
</fo:block>
</fo:table-cell>
<fo:table-cell text-align="center" border="black solid
                      1pt">
<fo:block>
Zeile 1 Spalte
                2
</fo:block>
</fo:table-cell>
<fo:table-cell text-align="center" border="black solid
                      1pt">
<fo:block>
Zeile 1 Spalte 3
</fo:block>
</fo:table-cell>
</fo:table-row>
<fo:table-row>
<fo:table-cell text-align="center" border="black solid
                      1pt">
<fo:block>
Zeile 2 Spalte
                1
</fo:block>
</fo:table-cell>
<fo:table-cell text-align="center" border="black solid
                      1pt">
<fo:block>
Zeile 2 Spalte 2
</fo:block>
</fo:table-cell>
<fo:table-cell text-align="center" border="black solid
                      1pt">
<fo:block>
Zeile 2 Spalte
                3
</fo:block>
</fo:table-cell>
</fo:table-row>
</fo:table-body>
</fo:table>
</fo:table-and-caption>
<fo:block margin="5mm"/>
<fo:table-and-caption table-layout="fixed" caption-side="after">
<fo:table-caption width="70mm">
<fo:block background-color="#F38222">
caption-side="bottom" | caption-side="after"
</fo:block>
</fo:table-caption>
<fo:table width="90mm">
<fo:table-header font-weight="bold">
<fo:table-row>
<fo:table-cell text-align="center" border="black solid
                      1pt">
<fo:block>
Kopfzeile Spalte 1
</fo:block>
</fo:table-cell>
<fo:table-cell text-align="center" border="black solid
                      1pt">
<fo:block>
Kopfzeile Spalte
                2
</fo:block>
</fo:table-cell>
<fo:table-cell text-align="center" border="black solid
                      1pt">
<fo:block>
Kopfzeile Spalte 3
</fo:block>
</fo:table-cell>
</fo:table-row>
</fo:table-header>
<fo:table-body>
<fo:table-row>
<fo:table-cell text-align="center" border="black solid
                      1pt">
<fo:block>
Zeile 1 Spalte
                1
</fo:block>
</fo:table-cell>
<fo:table-cell text-align="center" border="black solid
                      1pt">
<fo:block>
Zeile 1 Spalte 2
</fo:block>
</fo:table-cell>
<fo:table-cell text-align="center" border="black solid
                      1pt">
<fo:block>
Zeile 1 Spalte
                3
</fo:block>
</fo:table-cell>
</fo:table-row>
<fo:table-row>
<fo:table-cell text-align="center" border="black solid
                      1pt">
<fo:block>
Zeile 2 Spalte 1
</fo:block>
</fo:table-cell>
<fo:table-cell text-align="center" border="black solid
                      1pt">
<fo:block>
Zeile 2 Spalte
                2
</fo:block>
</fo:table-cell>
<fo:table-cell text-align="center" border="black solid
                      1pt">
<fo:block>
Zeile 2 Spalte 3
</fo:block>
</fo:table-cell>
</fo:table-row>
</fo:table-body>
</fo:table>
</fo:table-and-caption>
<fo:block margin-top="5mm"/>
<fo:table-and-caption caption-side="left">
<fo:table-caption width="70mm">
<fo:block background-color="#F38222">
caption-side="left" | caption-side="start"
</fo:block>
</fo:table-caption>
<fo:table width="90mm">
<fo:table-header font-weight="bold">
<fo:table-row>
<fo:table-cell text-align="center" border="black solid
                      1pt">
<fo:block>
Kopfzeile Spalte
                1
</fo:block>
</fo:table-cell>
<fo:table-cell text-align="center" border="black solid
                      1pt">
<fo:block>
Kopfzeile Spalte 2
</fo:block>
</fo:table-cell>
<fo:table-cell text-align="center" border="black solid
                      1pt">
<fo:block>
Kopfzeile Spalte
                3
</fo:block>
</fo:table-cell>
</fo:table-row>
</fo:table-header>
<fo:table-body>
<fo:table-row>
<fo:table-cell text-align="center" border="black solid
                      1pt">
<fo:block>
Zeile 1 Spalte 1
</fo:block>
</fo:table-cell>
<fo:table-cell text-align="center" border="black solid
                      1pt">
<fo:block>
Zeile 1 Spalte
                2
</fo:block>
</fo:table-cell>
<fo:table-cell text-align="center" border="black solid
                      1pt">
<fo:block>
Zeile 1 Spalte 3
</fo:block>
</fo:table-cell>
</fo:table-row>
<fo:table-row>
<fo:table-cell text-align="center" border="black solid
                      1pt">
<fo:block>
Zeile 2 Spalte
                1
</fo:block>
</fo:table-cell>
<fo:table-cell text-align="center" border="black solid
                      1pt">
<fo:block>
Zeile 2 Spalte 2
</fo:block>
</fo:table-cell>
<fo:table-cell text-align="center" border="black solid
                      1pt">
<fo:block>
Zeile 2 Spalte
                3
</fo:block>
</fo:table-cell>
</fo:table-row>
</fo:table-body>
</fo:table>
</fo:table-and-caption>
<fo:block margin-top="5mm"/>
<fo:table-and-caption caption-side="right">
<fo:table-caption width="70mm">
<fo:block background-color="#F38222">
caption-side="right" | caption-side="end"
</fo:block>
</fo:table-caption>
<fo:table width="90mm">
<fo:table-header font-weight="bold">
<fo:table-row>
<fo:table-cell text-align="center" border="black solid
                      1pt">
<fo:block>
Kopfzeile Spalte 1
</fo:block>
</fo:table-cell>
<fo:table-cell text-align="center" border="black solid
                      1pt">
<fo:block>
Kopfzeile Spalte
                2
</fo:block>
</fo:table-cell>
<fo:table-cell text-align="center" border="black solid
                      1pt">
<fo:block>
Kopfzeile Spalte 3
</fo:block>
</fo:table-cell>
</fo:table-row>
</fo:table-header>
<fo:table-body>
<fo:table-row>
<fo:table-cell text-align="center" border="black solid
                      1pt">
<fo:block>
Zeile 1 Spalte
                1
</fo:block>
</fo:table-cell>
<fo:table-cell text-align="center" border="black solid
                      1pt">
<fo:block>
Zeile 1 Spalte 2
</fo:block>
</fo:table-cell>
<fo:table-cell text-align="center" border="black solid
                      1pt">
<fo:block>
Zeile 1 Spalte
                3
</fo:block>
</fo:table-cell>
</fo:table-row>
<fo:table-row>
<fo:table-cell text-align="center" border="black solid
                      1pt">
<fo:block>
Zeile 2 Spalte 1
</fo:block>
</fo:table-cell>
<fo:table-cell text-align="center" border="black solid
                      1pt">
<fo:block>
Zeile 2 Spalte
                2
</fo:block>
</fo:table-cell>
<fo:table-cell text-align="center" border="black solid
                      1pt">
<fo:block>
Zeile 2 Spalte 3
</fo:block>
</fo:table-cell>
</fo:table-row>
</fo:table-body>
</fo:table>
</fo:table-and-caption>
</fo:flow>
</fo:page-sequence>
</fo:root>

Download der Beispiele

In der Ausgabe:

Auszug aus der W3C recommendation:

Weitere Informationen online zu

Darstellung der Eigenschaft in der CSS-Referenz "caption-side"

Darstellung der Eigenschaft in der XSL-FO-Referenz

nach oben