Tecnologías XML / XSL-FO / Referencia / Extensiones XSL de Antenna House Formatter / Elementos / table-cell-repeated-marker
(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
Categoría Tablas
Uso habitual: | Especifica el contenido que se muestra en la celda dividida. V6.3[no-LT] |
Áreas: | Este elemento no genera directamente una región. |
Restricciones: | Solo puede especificarse uno como primer hijo de fo:table-cell (excepto un marcador). |
Contenido: | (#PCDATA|%inline;|%block;)* |
Cuando se especifica axf:repeat-cell-content-at-break="true" y <axf:table-cell-repeated-marker> está presente en la celda, se utiliza el contenido de <axf:table-cell-repeated-marker> en lugar del contenido de la celda. Este elemento no está disponible en AH Formatter V6.3 Lite.
Ejemplo 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>Resultado:

página 2