Tecnologías XML / XSL-FO / Referencia / Atributos de XSL-FO / retrieve-position-within-table
(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
Sección de la recomendación: 7.25.6
Categoría: 7.25 Propiedades de marcadores
Descripción
El elemento <fo:retrieve-table-marker> referencia un marcador (<fo:marker>) definido en la tabla. Un identificador puede referenciar varios marcadores con el mismo nombre (marker-class-name). El atributo retrieve-position-within-table selecciona cuál se referencia cuando hay varias coincidencias. Cada marcador tiene un ámbito: se aplica dentro del área donde se definió.
Valores
first-starting | Tiene prioridad el primer marcador definido en la tabla. |
first-including-carryover | Tiene prioridad el marcador cuya área termina primero en la tabla. |
last-starting | Tiene prioridad el último marcador definido en la tabla. |
last-ending | Tiene prioridad el marcador cuya área termina al final en la tabla. |
Valor predeterminado: first-starting
Versión de XSL-FO: 1.1
Permitido en:
Junto con <fo:marker>, este elemento permite repetir áreas en las tablas. |
Compatibilidad:
Nivel de conformidad | Antenna House | FOP | RenderX XEP | Altsoft XML2PDF | Compart DocBridge |
Ampliado | j | N | - | S | S |
Ejemplo de XSL-FO:
<fo:root font-size="9pt" 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="seite" margin="0mm 0mm 0mm
0mm" page-height="25mm" page-width="35mm">
<fo:region-body region-name="body" margin="2mm 2mm 2mm
2mm"/>
</fo:simple-page-master>
</fo:layout-master-set>
<fo:page-sequence master-reference="seite">
<fo:flow flow-name="body">
<fo:table border="0.5pt
solid">
<fo:table-header>
<fo:table-row>
<fo:table-cell>
<fo:block>
Produkt
</fo:block>
</fo:table-cell>
<fo:table-cell border="0.5pt
solid">
<fo:block>
Preis
</fo:block>
</fo:table-cell>
</fo:table-row>
</fo:table-header>
<fo:table-footer>
<fo:retrieve-table-marker retrieve-class-name="subtotal" retrieve-position-within-table="last-ending"/>
<fo:retrieve-table-marker retrieve-class-name="continued" retrieve-position-within-table="first-including-carryover"/>
</fo:table-footer>
<fo:table-body>
<fo:table-row>
<fo:marker marker-class-name="continued">
<fo:table-row>
<fo:table-cell border="0.5pt
solid" number-columns-spanned="2">
<fo:block>
Weiter auf
nächster Seite...
</fo:block>
</fo:table-cell>
</fo:table-row>
</fo:marker>
<fo:marker marker-class-name="subtotal">
<fo:table-row>
<fo:table-cell border="0.5pt
solid">
<fo:block>
Zwischensumme:
</fo:block>
</fo:table-cell>
<fo:table-cell border="0.5pt
solid">
<fo:block text-align="right">
2,00 EUR
</fo:block>
</fo:table-cell>
</fo:table-row>
</fo:marker>
<fo:table-cell border="0.5pt
solid">
<fo:block>
Schokolade
</fo:block>
</fo:table-cell>
<fo:table-cell border="0.5pt
solid">
<fo:block text-align="right">
2,00 EUR
</fo:block>
</fo:table-cell>
</fo:table-row>
<fo:table-row>
<fo:marker marker-class-name="continued">
<fo:table-row>
<fo:table-cell border="0.5pt
solid" number-columns-spanned="2">
<fo:block>
Weiter auf nächster Seite...
</fo:block>
</fo:table-cell>
</fo:table-row>
</fo:marker>
<fo:marker marker-class-name="subtotal">
<fo:table-row>
<fo:table-cell border="0.5pt
solid">
<fo:block>
Zwischensumme:
</fo:block>
</fo:table-cell>
<fo:table-cell border="0.5pt
solid">
<fo:block text-align="right">
6,00 EUR
</fo:block>
</fo:table-cell>
</fo:table-row>
</fo:marker>
<fo:table-cell border="0.5pt
solid">
<fo:block>
Eis
</fo:block>
</fo:table-cell>
<fo:table-cell border="0.5pt
solid">
<fo:block text-align="right">
4,00 EUR
</fo:block>
</fo:table-cell>
</fo:table-row>
<fo:table-row>
<fo:marker marker-class-name="continued">
<fo:table-row>
<fo:table-cell border="0.5pt
solid" number-columns-spanned="2">
<fo:block>
Weiter auf
nächster Seite...
</fo:block>
</fo:table-cell>
</fo:table-row>
</fo:marker>
<fo:marker marker-class-name="subtotal">
<fo:table-row>
<fo:table-cell border="0.5pt
solid">
<fo:block>
Zwischensumme:
</fo:block>
</fo:table-cell>
<fo:table-cell border="0.5pt
solid">
<fo:block text-align="right">
9,00 EUR
</fo:block>
</fo:table-cell>
</fo:table-row>
</fo:marker>
<fo:table-cell border="0.5pt
solid">
<fo:block>
Butter
</fo:block>
</fo:table-cell>
<fo:table-cell border="0.5pt
solid">
<fo:block text-align="right">
3,00 EUR
</fo:block>
</fo:table-cell>
</fo:table-row>
<fo:table-row>
<fo:marker marker-class-name="continued"/>
<fo:marker marker-class-name="subtotal">
<fo:table-row font-weight="bold">
<fo:table-cell border="0.5pt
solid">
<fo:block>
Gesamt:
</fo:block>
</fo:table-cell>
<fo:table-cell border="0.5pt
solid">
<fo:block text-align="right">
10,00 EUR
</fo:block>
</fo:table-cell>
</fo:table-row>
</fo:marker>
<fo:table-cell border="0.5pt
solid">
<fo:block>
Brot
</fo:block>
</fo:table-cell>
<fo:table-cell border="0.5pt
solid">
<fo:block text-align="right">
1,00 EUR
</fo:block>
</fo:table-cell>
</fo:table-row>
</fo:table-body>
</fo:table>
</fo:flow>
</fo:page-sequence>
</fo:root>En la salida:
Página 2
Página 3
Página 4
Extracto de la recomendación del W3C: