Technologies XML / XSL-FO / Référence / Attributs de XSL-FO / caption-side
(Extrait de « XSL-FO ― Die Referenz » de 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
Section de la recommandation : 7.28.7
Catégorie : 7.28 Propriétés des tableaux
Description
Pour un tableau de type <fo:table-and-caption>, cette propriété définit la position du titre indiqué facultativement dans l’élément enfant <fo:table-caption>.
Valeurs
before | Le titre est affiché au-dessus du tableau. |
after | Le titre est affiché au-dessous du tableau. |
start | Le titre est affiché à gauche du tableau. |
end | Le titre est affiché à droite du tableau. |
Le titre est affiché au-dessus du tableau. | |
Le titre est affiché au-dessous du tableau. | |
Le titre est affiché à gauche du tableau. | |
Le titre est affiché à droite du tableau. | |
Hérité : | oui |
Valeur par défaut : before
Version XSL-FO : 1.0
Autorisé dans :
Cet élément crée un tableau avec une légende placée au-dessus ou au-dessous. |
Prise en charge :
Niveau de conformité | Antenna House | FOP | RenderX XEP | Altsoft XML2PDF | Compart DocBridge |
Complet | O | N | O | O | N |
Exemple XSL-FO :
<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>Dans la sortie :
Extrait de la recommandation du W3C :
Informations complémentaires en ligne sur
Présentation de la propriété dans la référence CSS « caption-side »