Technologies XML / XSL-FO / Référence / Attributs de XSL-FO / column-number

(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.8

Catégorie : 7.28 Propriétés des tableaux

Description

Cet attribut attribue des numéros de référence aux colonnes (<fo:table-column>) ou aux cellules (<fo:table-cell>) d’une table. Il peut définir l’ordre d’accès aux informations de colonne, éventuellement différent de l’ordre existant. Les cellules peuvent référencer les propriétés définies sur les colonnes. Pour cela, les propriétés qui doivent reprendre ces valeurs doivent recevoir la fonction from-table-column().

Valeurs

Nombre

Un nombre positif, éventuellement décimal. Selon la recommandation du W3C, une valeur décimale serait automatiquement arrondie à l’entier positif le plus proche.

Valeur par défaut : 1 (für die erste Spalte); weitere Spalten erhalten als Wert die Gesamtanzahl ihrer vorangehenden Spalten +1.

Version XSL-FO : 1.0

Autorisé dans :

<fo:table-cell>

Cet élément place les données dans une cellule du tableau.

<fo:table-column>

Cet élément permet de définir les propriétés des cellules d’une même colonne.

Prise en charge :

Niveau de conformité

Antenna House

FOP

RenderX XEP

Altsoft XML2PDF

Compart DocBridge

De base

O

O

O

O

O

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 55mm 41mm
                        55mm"/>
</fo:simple-page-master>
</fo:layout-master-set>
<fo:page-sequence master-reference="Inhalt-Seiten">
<fo:flow flow-name="xsl-region-body">
<fo:table width="100mm" border="black solid
                      1pt">
<fo:table-column color="white" background-color="#F38222" text-align="center" column-number="1"/>
<fo:table-column color="white" background-color="#4F491D" text-align="right" column-number="2"/>
<fo:table-body>
<fo:table-row>
<fo:table-cell color="from-table-column()" background-color="from-table-column()" column-number="2">
<fo:block>
from-table-column()
<fo:block/>
column-number="2"
              
</fo:block>
</fo:table-cell>
<fo:table-cell color="from-table-column()" background-color="from-table-column()" column-number="1">
<fo:block>
from-table-column()
<fo:block/>
column-number="1" 
</fo:block>
</fo:table-cell>
</fo:table-row>
</fo:table-body>
</fo:table>
</fo:flow>
</fo:page-sequence>
</fo:root>

Télécharger les exemples

Dans la sortie :

Extrait de la recommandation du W3C :

Informations complémentaires en ligne sur

Introduction : « Tableaux »>

Présentation de la propriété dans la référence XSL-FO

haut de page