table-layout
(Auszug aus "XSL-FO ― Die Referenz" von Manuel Montero Pineda & Steffen Herkert, 2016, dpunkt.verlag)
Recommendationnummer: 7.28.16
Kategorie: 7.28 Table Properties
Beschreibung
Dieses Attribut legt für eine Tabelle (<fo:table>) fest, ob eine automatische Spaltenbreiten-Anpassung aktiv oder inaktiv sein soll. Defaultmäßig ist die automatische Spaltenbreiten-Anpassung aktiv. Die Breite einer Spalte wird dann anhand des Inhalts ermittelt. Wird die automatische Anpassung deaktiviert, werden die Spaltenbreiten vereinheitlicht und die Tabellenbreite wird maximiert. Diese Funktion wird nur für Spalten aktiv, für die keine festen Breite über das Attribut column-width definiert wurde.
Werte
auto | Die Spaltenbreiten werden anhand ihres Inhalts ermittelt. |
fixed | Die Spaltenbreiten werden unabhängig vom Inhalt vereinheitlicht. |
Vererbt: | ja |
Standardwert: auto
XSL-FO Version: 1.0
Erlaubt in:
Dieses Element erzeugt eine Tabelle. |
Unterstützung:
Conformance Level | Antenna House | FOP | RenderX XEP | Altsoft XML2PDF | Compart DocBridge |
Extended | J | N | J | J | J |
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:block> | |
| Tabellenkopf Spalte 1 | |
| </fo:block> | |
| ||
| ||
| <fo:block> | |
| Tabellenkopf | |
| </fo:block> | |
| ||
| ||
| <fo:block> | |
| Tabellenkopf | |
| </fo:block> | |
| ||
| ||
| <fo:block> | |
| Tabellenkopf letzte Spalte | |
| </fo:block> | |
| ||
| </fo:table-row> | |
| ||
| ||
| ||
| ||
| <fo:block> | |
| Tabellenfuß Spalte 1 Hallo Welt wie geht es dir? | |
| </fo:block> | |
| ||
| ||
| <fo:block> | |
| Tabellenfuß | |
| </fo:block> | |
| ||
| ||
| <fo:block> | |
| Tabellenfuß | |
| </fo:block> | |
| ||
| ||
| <fo:block> | |
| Tabellenfuß letzte Spalte | |
| </fo:block> | |
| ||
| </fo:table-row> | |
| ||
| ||
| ||
| ||
| <fo:block> | |
| Zeile 1 Spalte 1 | |
| </fo:block> | |
| ||
| ||
| <fo:block> | |
| Zeile 1 | |
| </fo:block> | |
| ||
| ||
| <fo:block> | |
| Zeile 1 | |
| </fo:block> | |
| ||
| ||
| <fo:block> | |
| Zeile 1 letzte Spalte | |
| </fo:block> | |
| ||
| </fo:table-row> | |
| ||
| ||
| <fo:block> | |
| Zeile 2 Spalte 1 | |
| </fo:block> | |
| ||
| ||
| <fo:block> | |
| Zeile 2 | |
| </fo:block> | |
| ||
| ||
| <fo:block> | |
| Zeile 2 | |
| </fo:block> | |
| ||
| ||
| <fo:block> | |
| Zeile 2 letzte Spalte | |
| </fo:block> | |
| ||
| </fo:table-row> | |
| ||
| </fo:table> | |
| ||
| ||
| ||
| ||
| <fo:block> | |
| Tabellenkopf Spalte 1 | |
| </fo:block> | |
| ||
| ||
| <fo:block> | |
| Tabellenkopf | |
| </fo:block> | |
| ||
| ||
| <fo:block> | |
| Tabellenkopf | |
| </fo:block> | |
| ||
| ||
| <fo:block> | |
| Tabellenkopf letzte Spalte | |
| </fo:block> | |
| ||
| </fo:table-row> | |
| ||
| ||
| ||
| ||
| <fo:block> | |
| Tabellenfuß Spalte 1 Hallo Welt wie geht es dir | |
| </fo:block> | |
| ||
| ||
| <fo:block> | |
| Tabellenfuß | |
| </fo:block> | |
| ||
| ||
| <fo:block> | |
| Tabellenfuß | |
| </fo:block> | |
| ||
| ||
| <fo:block> | |
| Tabellenfuß letzte Spalte | |
| </fo:block> | |
| ||
| </fo:table-row> | |
| ||
| ||
| ||
| ||
| <fo:block> | |
| Zeile 1 Spalte 1 | |
| </fo:block> | |
| ||
| ||
| <fo:block> | |
| Zeile 1 | |
| </fo:block> | |
| ||
| ||
| <fo:block> | |
| Zeile 1 | |
| </fo:block> | |
| ||
| ||
| <fo:block> | |
| Zeile 1 letzte Spalte | |
| </fo:block> | |
| ||
| </fo:table-row> | |
| ||
| ||
| <fo:block> | |
| Zeile 2 Spalte 1 | |
| </fo:block> | |
| ||
| ||
| <fo:block> | |
| Zeile 2 | |
| </fo:block> | |
| ||
| ||
| <fo:block> | |
| Zeile 2 | |
| </fo:block> | |
| ||
| ||
| <fo:block> | |
| Zeile 2 letzte Spalte | |
| </fo:block> | |
| ||
| </fo:table-row> | |
| ||
| </fo:table> | |
| </fo:flow> | |
| ||
| </fo:root> |
In der Ausgabe:

Auszug aus der W3C recommendation:

Weitere Informationen online zu
Tipp der data2type-Redaktion: Zum Thema XSL-FO bieten wir auch folgende Schulungen zur Vertiefung und professionellen Fortbildung an: |