Technologies XML / XSL-FO / Référence / Extensions XSL d’Antenna House Formatter / Propriétés / repeat-cell-content-at-break

(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

Catégorie Tableaux

axf:repeat-cell-content-at-break définit s’il faut copier le contenu d’une cellule lorsqu’elle est fractionnée.

Valeur :

true | false

Valeur initiale :

false

S’applique à :

fo:table-cell

Hérité :

no

Pourcentages :

N/A

Les valeurs ont les significations suivantes.

true

Lorsque le contenu d’une cellule tient dans table-cell-area sans être fractionné, mais que table-cell-area est fractionnée en raison d’une autre table-cell de la même ligne ou d’une coupure entre plusieurs lignes avec number-rows-spanned, le contenu de table-cell-area est généralement vide. Si axf:repeat-cell-content-at-break est spécifié sur table-cell, le contenu de la cellule avant la coupure est copié et répété.

false

Le contenu de la cellule n’est pas copié.

Exemple XSL-FO :

<fo:root font-size="12pt" 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">
<axf:document-info name="author" value="Alex Critchfield, Antenna House"/>
<axf:document-info name="keywords" value="extensions, table, cell, repeat, sample, example"/>
<axf:document-info name="subject" value="cell repeat marker extension"/>
<axf:document-info name="title" value="cell repeat marker extensions example"/>
<fo:layout-master-set>
<fo:simple-page-master page-width="8.5in" page-height="11in" master-name="main">
<fo:region-body region-name="body" margin-top="1in" margin-bottom="1in" margin-left=".75in" margin-right=".75in"/>
</fo:simple-page-master>
</fo:layout-master-set>
<fo:declarations>
<axf:space-after-punctuation code="." space="2in" language="en"/>
</fo:declarations>
<fo:page-sequence master-reference="main">
<fo:flow flow-name="body">
<fo:block span="all">
This page has a table that breaks across columns. The cell thats that are broken display the contents of the repeat marker after the break.
</fo:block>
<fo:block/>
<fo:block space-before="6in">
<fo:table width="4in" table-layout="fixed">
<fo:table-body>
<fo:table-row>
<fo:table-cell border="1pt solid black" padding="5pt" axf:repeat-cell-content-at-break="true">
<axf:table-cell-repeated-marker>
<fo:block>
<fo:inline>
[[see previous page]]
</fo:inline>
</fo:block>
</axf:table-cell-repeated-marker>
<fo:block>
cell with continued marker
</fo:block>
</fo:table-cell>
<fo:table-cell border="1pt solid black" padding="5pt" axf:repeat-cell-content-at-break="true">
<fo:block>
cell without continued marker
</fo:block>
</fo:table-cell>
<fo:table-cell border="1pt solid black" padding="5pt">
<fo:block>
 cell without repeat cell contents at break property cell without repeat cell contents at break property cell without repeat cell contents at break property cell without repeat cell contents at break property cell without repeat cell contents at break property cell without repeat cell contents at break property cell without repeat cell contents at break property cell without repeat cell contents at break property cell without repeat cell contents at break property cell without repeat cell contents at break property 
</fo:block>
</fo:table-cell>
</fo:table-row>
</fo:table-body>
</fo:table>
</fo:block>
</fo:flow>
</fo:page-sequence>
</fo:root>

Télécharger les exemples

Résultat :

page 2

haut de page