Technologies XML / XSL-FO / Référence / Éléments de XSL-FO / fo:retrieve-table-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

Section de la recommandation : 6.13.7

Catégorie : 6.13 Autres objets de mise en forme

Description

En association avec <fo:marker>, cet élément permet de répéter des zones dans les tableaux.

Version XSL-FO : 1.1

Éléments parents

<fo:basic-link> , <fo:bidi-override> , <fo:block> , <fo:block-container> , <fo:float> , <fo:flow> , <fo:folio-prefix> , <fo:folio-suffix> , <fo:footnote-body> , <fo:index-page-citation-list-separator> , <fo:index-page-citation-range-separator> , <fo:index-page-number-prefix> , <fo:index-page-number-suffix> , <fo:inline> , <fo:inline-container> , <fo:leader> , <fo:list-item-body> , <fo:list-item-label> , <fo:marker> , <fo:multi-case> , <fo:multi-toggle> , <fo:static-content> , <fo:table-caption> , <fo:table-cell> , <fo:title> et <fo:wrapper>

Attributs

retrieve-boundary-within-table

Cet attribut définit la portée d’un marqueur de tableau (fo:retrieve-table-marker). Un marqueur (fo:marker) n’est récupéré que s’il a été défini dans cette portée.

retrieve-class-name

L’élément fo:retrieve-marker référence un marqueur (fo:marker) défini dans le document. L’attribut retrieve-class-name précise le marqueur référencé. Sa valeur doit correspondre au nom d’un marqueur (marker-class-name). Si aucun marqueur correspondant n’est trouvé dans la portée concernée (retrieve-boundary), une chaîne vide est produite. Si la référence aboutit, le contenu de l’élément correspondant (fo:marker) est produit.

retrieve-position-within-table

L’élément fo:retrieve-table-marker référence un marqueur (fo:marker) défini dans le tableau. Un identifiant peut référencer un ou plusieurs marqueurs portant ce même nom (marker-class-name). L’attribut retrieve-position-within-table précise le marqueur du tableau à référencer lorsque plusieurs correspondent. Les marqueurs reçoivent une portée et sont valides dans la zone où ils ont été définis.

Prise en charge :

Niveau de conformité

Antenna House

FOP

RenderX XEP

Altsoft XML2PDF

Compart DocBridge

Étendu

O

O

O

O

O

Exemple XSL-FO :

<fo:root font-family="Arial" font-size="9.5pt" 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="seite" margin="0mm 0mm 0mm
                      0mm" page-height="30mm" 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="solid" border-width="0.5pt">
<fo:table-header>
<fo:table-row>
<fo:table-cell>
<fo:block>
Produkt
</fo:block>
</fo:table-cell>
<fo:table-cell border="solid" border-width="0.5pt">
<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-boundary-within-table="table" retrieve-position-within-table="last-starting-within-page"/>
<fo:retrieve-table-marker retrieve-class-name="continued" retrieve-boundary-within-table="table" retrieve-position-within-table="last-starting-within-page"/>
</fo:table-footer>
<fo:table-body>
<fo:table-row>
<fo:marker marker-class-name="continued">
<fo:table-row>
<fo:table-cell border="solid" border-width="0.5pt" number-columns-spanned="2">
<fo:block font-size="7pt">
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="solid" border-width="0.5pt">
<fo:block>
Zwischensumme:
</fo:block>
</fo:table-cell>
<fo:table-cell border="solid" border-width="0.5pt">
<fo:block text-align="right">
2,00 EUR
</fo:block>
</fo:table-cell>
</fo:table-row>
</fo:marker>
<fo:table-cell border="solid" border-width="0.5pt">
<fo:block>
Schokolade
</fo:block>
</fo:table-cell>
<fo:table-cell border="solid" border-width="0.5pt">
<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="solid" border-width="0.5pt" number-columns-spanned="2">
<fo:block font-size="7pt">
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="solid" border-width="0.5pt">
<fo:block>
Zwischensumme:
</fo:block>
</fo:table-cell>
<fo:table-cell border="solid" border-width="0.5pt">
<fo:block text-align="right">
6,00 EUR
</fo:block>
</fo:table-cell>
</fo:table-row>
</fo:marker>
<fo:table-cell border="solid" border-width="0.5pt">
<fo:block>
Eis
</fo:block>
</fo:table-cell>
<fo:table-cell border="solid" border-width="0.5pt">
<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="solid" border-width="0.5pt" number-columns-spanned="2">
<fo:block font-size="7pt">
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="solid" border-width="0.5pt">
<fo:block>
Zwischensumme:
</fo:block>
</fo:table-cell>
<fo:table-cell border="solid" border-width="0.5pt">
<fo:block text-align="right">
9,00 EUR
</fo:block>
</fo:table-cell>
</fo:table-row>
</fo:marker>
<fo:table-cell border="solid" border-width="0.5pt">
<fo:block>
Butter
</fo:block>
</fo:table-cell>
<fo:table-cell border="solid" border-width="0.5pt">
<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="solid" border-width="0.5pt">
<fo:block>
Gesamt:
</fo:block>
</fo:table-cell>
<fo:table-cell border="solid" border-width="0.5pt">
<fo:block text-align="right">
10,00 EUR
</fo:block>
</fo:table-cell>
</fo:table-row>
</fo:marker>
<fo:table-cell border="solid" border-width="0.5pt">
<fo:block>
Brot
</fo:block>
</fo:table-cell>
<fo:table-cell border="solid" border-width="0.5pt">
<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>

Télécharger les exemples

Rendu de l’élément dans la référence XSL-FO

Dans la sortie :

Page 2

Page 3

Page 4

Extrait de la recommandation du W3C :

haut de page