Bonjour,
J'ai un problème dans la génération de la TOC, je n'arrive pas à mettre de points de conduite pour relier le texte au n° de page.
Avec ce code j'obtiens trois points de conduite derrière le titre ?
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28 <xsl:template mode="toc" match="chap"> <xsl:choose> <xsl:when test="title"> <xsl:variable name="pbnumb" select="@chapnbr"/> <fo:table table-layout="fixed"> <fo:table-column column-width="proportional-column-width(99)"/> <fo:table-column column-width="proportional-column-width(1)"/> <fo:table-body> <fo:table-row> <fo:table-cell > <fo:block font-family="Arial" font-size="10pt" font-weight="bold"> <xsl:value-of select="title"/> <fo:leader leader-pattern='dots' rule-thickness='.2pt' leader-alignment='reference-area' font-size="10pt"/> </fo:block> </fo:table-cell> <fo:table-cell> <fo:block text-align="right" font-family="Arial" font-size="10pt" font-weight="bold"> <fo:page-number-citation ref-id="{generate-id()}"/> </fo:block> </fo:table-cell> </fo:table-row> </fo:table-body> </fo:table> </xsl:when> </xsl:choose> </xsl:template>
Merci
Partager