Bonjour,

Est-ce qu'il est possible quand j'effectue ma boucle de pouvoir sélectionner le champ name qui arrive en 3éme position, du style <xsl:value-of select="NAME[3]"/>

?
précision je ne peux que modifier le xsl, je n'ai pas la main sur le xml.

voici xsl:

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
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
 
		<xsl:for-each select="$GR_LINE">
									<xsl:if test="$V_COUNT_NAME3 > 0">
									<fo:table-cell>
										<fo:block>
										<xsl:value-of select="NAME"/>
										</fo:block>
									</fo:table-cell>
									</xsl:if>
									<xsl:if test="$V_COUNT_NAME4 > 0">
									<fo:table-cell>
										<fo:block>
											<xsl:value-of select="NAME"/>
										</fo:block>
									</fo:table-cell>
									</xsl:if>
									<xsl:if test="$V_COUNT_NAME5 > 0">
									<fo:table-cell>
										<fo:block>
											<xsl:value-of select="NAME"/>
										</fo:block>
									</fo:table-cell>
									</xsl:if>
									<xsl:if test="$V_COUNT_NAME6 > 0">
									<fo:table-cell>
										<fo:block>
											<xsl:value-of select="NAME"/>
										</fo:block>
									</fo:table-cell>
									</xsl:if>
									<xsl:if test="$V_COUNT_NAME7 > 0">									
									<fo:table-cell>
										<fo:block>
											<xsl:value-of select="NAME"/>
										</fo:block>
									</fo:table-cell>
									</xsl:if>
									<xsl:if test="$V_COUNT_NAME8 > 0">																		
									<fo:table-cell>
										<fo:block>
											<xsl:value-of select="NAME"/>
										</fo:block>
									</fo:table-cell>
									</xsl:if>
									<xsl:if test="$V_COUNT_NAME9 > 0">									
									<fo:table-cell>
										<fo:block>
											<xsl:value-of select="NAME"/>
										</fo:block>
									</fo:table-cell>
									</xsl:if>
									<xsl:if test="$V_COUNT_NAME10 > 0">
									<fo:table-cell>
										<fo:block>
											<xsl:value-of select="NAME"/>
										</fo:block>
									</fo:table-cell>
									</xsl:if>
									<xsl:if test="$V_COUNT_NAME11 > 0">
									<fo:table-cell>
										<fo:block>
											<xsl:value-of select="NAME"/>
										</fo:block>
									</fo:table-cell>
									</xsl:if>
									<xsl:if test="$V_COUNT_NAME12 > 0">
									<fo:table-cell>
										<fo:block>
											<xsl:value-of select="NAME"/>
										</fo:block>
									</fo:table-cell>
									</xsl:if>
			</xsl:for-each>
Mon xml DATA:

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
 
 <LIST_GR_LIGNE>
  <GR_LIGNE>
  <NAME>champ1</NAME> 
  </GR_LIGNE>
  <GR_LIGNE>
  <NAME>champ2</NAME> 
  </GR_LIGNE>
  <GR_LIGNE>
  <NAME>champ3</NAME> 
  </GR_LIGNE>
  <GR_LIGNE>
  <NAME>champ4</NAME> 
  </GR_LIGNE>
  <GR_LIGNE>
  <NAME>champ5</NAME> 
  </GR_LIGNE>
  <GR_LIGNE>
  <NAME>champ6</NAME> 
  </GR_LIGNE>
 <GR_LIGNE>
  <NAME>champ7</NAME> 
  </GR_LIGNE>
  <GR_LIGNE>
  <NAME>champ8</NAME> 
  </GR_LIGNE>
  <GR_LIGNE>
  <NAME>champ9</NAME> 
  </GR_LIGNE>
  <GR_LIGNE>
  <NAME>champ10</NAME> 
  </GR_LIGNE>
  <GR_LIGNE>
  <NAME>champ11</NAME> 
  </GR_LIGNE>
  </LIST_GR_LIGNE>

D'avance merci.