Tecnologías XML / XSL-FO / Referencia / Atributos de XSL-FO / caption-side
(Extracto 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
Sección de la recomendación: 7.28.7
Categoría: 7.28 Propiedades de tablas
Descripción
Para una tabla de tipo <fo:table-and-caption>, esta propiedad define la posición del título indicado opcionalmente en el elemento hijo <fo:table-caption>.
Valores
before | El título se muestra encima de la tabla. |
after | El título se muestra debajo de la tabla. |
start | El título se muestra a la izquierda de la tabla. |
end | El título se muestra a la derecha de la tabla. |
El título se muestra encima de la tabla. | |
El título se muestra debajo de la tabla. | |
El título se muestra a la izquierda de la tabla. | |
El título se muestra a la derecha de la tabla. | |
Heredado: | sí |
Valor predeterminado: before
Versión de XSL-FO: 1.0
Permitido en:
Este elemento crea una tabla con un título o pie de tabla. |
Compatibilidad:
Nivel de conformidad | Antenna House | FOP | RenderX XEP | Altsoft XML2PDF | Compart DocBridge |
Completo | S | N | S | S | N |
Ejemplo de 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>En la salida:
Extracto de la recomendación del W3C:
Más información en línea sobre
Representación de la propiedad en la referencia CSS «caption-side»