Bonjour,

Je voudrai indenter des listes et leur contenu de façon automatique, avec une valeur de départ et que la suite se calcule de façon automatique.

Exemple
1. AA
A. xxx
(1) cccc

Voilà mon code qui donne un résultat ou tout est cadré à gauche :
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
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
 
<xsl:template match="chapitre/titre">
	<fo:list-block space-before="4mm">
    		<fo:list-item xsl:use-attribute-sets="list.item">
      			<fo:list-item-label end-indent="label-end()">
        			<fo:block space-before="0cm" color="red">
          				<xsl:number format="1. " count="chapitre"/>
        			</fo:block>
      			</fo:list-item-label>
      			<fo:list-item-body start-indent="body-start()"  color="red">
        			<fo:block>
            				<xsl:apply-templates/>
        			</fo:block>
      			</fo:list-item-body>
    		</fo:list-item>
  	</fo:list-block>
</xsl:template>
 
<xsl:template match="section">
	<xsl:apply-templates/>
</xsl:template>
 
<xsl:template match="section/titre">
  <!--fo:block text-align="center" space-after="6pt"
            space-before="12pt" space-before.precedence="0"
            space-after.precedence="3">
    <xsl:apply-templates/>
  </fo:block-->
	<fo:list-block space-before="8mm">
    		<fo:list-item>
      			<fo:list-item-label end-indent="label-end()">
        			<fo:block space-before="0cm" color="blue">
          				<xsl:number format="A. " count="section"/>
        			</fo:block>
      			</fo:list-item-label>
      			<fo:list-item-body start-indent="body-start()"  color="blue">
        			<fo:block>
            				<xsl:apply-templates/>
        			</fo:block>
      			</fo:list-item-body>
    		</fo:list-item>
  	</fo:list-block>
</xsl:template>
Merci pour l'aide