Technologies XML / XSL-FO / Référence / Extensions XSL d’Antenna House Formatter / Éléments / table-cell-repeated-marker

(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

Utilisation courante :

Définit le contenu à afficher dans la cellule fractionnée. V6.3[no-LT]

Zones :

Cet élément ne génère pas directement de région.

Contraintes :

Un seul peut être spécifié comme premier enfant de fo:table-cell (sauf un marqueur).

Contenu :

(#PCDATA|%inline;|%block;)*

Lorsque axf:repeat-cell-content-at-break="true" est spécifié et que <axf:table-cell-repeated-marker> est présent dans la cellule, le contenu de <axf:table-cell-repeated-marker> est utilisé à la place du contenu de la cellule. Cet élément n’est pas disponible avec AH Formatter V6.3 Lite.

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