Bonjour,

Je débute en XSL, et je suis en train de travailler sur un miniprojet de reformatage HTML de logs issues de Rational TestManager.

J'ai un soucis de formatage conditionnel.

Voici mon source XML:

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
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
<TestLog>
	<LogEvent ID="Computer Start">
		<LogEventProperty ID="Event Type" Name="Event Type">Computer Start</LogEventProperty>
		<LogEventProperty ID="Start Date" Name="Start Date">09/04/2006</LogEventProperty>
		<LogEventProperty ID="Start Time" Name="Start Time">17:47:12</LogEventProperty>
		<LogEventProperty ID="End Date" Name="End Date">09/04/2006</LogEventProperty>
		<LogEventProperty ID="End Time" Name="End Time">17:47:12</LogEventProperty>
		<LogEventProperty ID="Result" Name="Result"> </LogEventProperty>
		<LogEventProperty ID="Failure Reason" Name="Failure Reason"> </LogEventProperty>
		<LogEventProperty ID="Failure Description" Name="Failure Description"></LogEventProperty>
		<LogEventProperty ID="Error File" Name="Error File">e000</LogEventProperty>
		<LogEventProperty ID="Output File" Name="Output File">o000</LogEventProperty>
		<LogEventProperty ID="Operating System" Name="Operating System">Windows</LogEventProperty>
		<LogEventProperty ID="OS Version" Name="OS Version">2000</LogEventProperty>
		<LogEventProperty ID="Processor" Name="Processor">Pentium</LogEventProperty>
		<LogEventProperty ID="Display Resolution" Name="Display Resolution">1024x768</LogEventProperty>
		<LogEventProperty ID="Display Color Bits" Name="Display Color Bits">32</LogEventProperty>
		<LogEventProperty ID="OS Service Pack" Name="OS Service Pack">Service Pack 4</LogEventProperty>
		<LogEventProperty ID="Memory Size" Name="Memory Size">248</LogEventProperty>
		<LogEventProperty ID="Processor Number" Name="Processor Number">1</LogEventProperty>
	</LogEvent>
		<LogEvent ID="Log Message">
			<LogEventProperty ID="Event Type" Name="Event Type">Log Message</LogEventProperty>
			<LogEventProperty ID="Start Date" Name="Start Date">09/04/2006</LogEventProperty>
			<LogEventProperty ID="Start Time" Name="Start Time">17:47:15</LogEventProperty>
			<LogEventProperty ID="End Date" Name="End Date">09/04/2006</LogEventProperty>
			<LogEventProperty ID="End Time" Name="End Time">17:47:15</LogEventProperty>
			<LogEventProperty ID="Result" Name="Result"> </LogEventProperty>
			<LogEventProperty ID="Failure Reason" Name="Failure Reason"> </LogEventProperty>
			<LogEventProperty ID="Failure Description" Name="Failure Description"></LogEventProperty>
			<LogEventProperty ID="Additional Information" Name="Additional Information">Nombre de lignes dans le datapool Protocole: 1</LogEventProperty>
			<LogEventProperty ID="Additional Output" Name="Additional Output"></LogEventProperty>
			<LogEventProperty ID="Script Line Number" Name="Script Line Number">245</LogEventProperty>
			<LogEventProperty ID="Script Name" Name="Script Name">_PAR_Paramatrage2</LogEventProperty>
			<LogEventProperty ID="Operating System" Name="Operating System">Windows</LogEventProperty>
			<LogEventProperty ID="OS Version" Name="OS Version">2000</LogEventProperty>
			<LogEventProperty ID="Processor" Name="Processor">Pentium</LogEventProperty>
			<LogEventProperty ID="Display Resolution" Name="Display Resolution">1024x768</LogEventProperty>
			<LogEventProperty ID="Display Color Bits" Name="Display Color Bits">32</LogEventProperty>
			<LogEventProperty ID="OS Service Pack" Name="OS Service Pack">Service Pack 4</LogEventProperty>
			<LogEventProperty ID="Memory Size" Name="Memory Size">248</LogEventProperty>
			<LogEventProperty ID="Processor Number" Name="Processor Number">1</LogEventProperty>
		</LogEvent>
		<LogEvent ID="Log Message">
			<LogEventProperty ID="Event Type" Name="Event Type">Log Message</LogEventProperty>
			<LogEventProperty ID="Start Date" Name="Start Date">09/04/2006</LogEventProperty>
			<LogEventProperty ID="Start Time" Name="Start Time">17:47:15</LogEventProperty>
			<LogEventProperty ID="End Date" Name="End Date">09/04/2006</LogEventProperty>
			<LogEventProperty ID="End Time" Name="End Time">17:47:15</LogEventProperty>
			<LogEventProperty ID="Result" Name="Result">Informational</LogEventProperty>
			<LogEventProperty ID="Failure Reason" Name="Failure Reason"> </LogEventProperty>
			<LogEventProperty ID="Failure Description" Name="Failure Description"></LogEventProperty>
			<LogEventProperty ID="Additional Information" Name="Additional Information">Code Produit : I045 - (ligne n° 2,colonne n° 1)</LogEventProperty>
			<LogEventProperty ID="Additional Output" Name="Additional Output"></LogEventProperty>
			<LogEventProperty ID="Script Line Number" Name="Script Line Number">0</LogEventProperty>
			<LogEventProperty ID="Script Name" Name="Script Name">_PAR_Paramatrage2</LogEventProperty>
			<LogEventProperty ID="Operating System" Name="Operating System">Windows</LogEventProperty>
			<LogEventProperty ID="OS Version" Name="OS Version">2000</LogEventProperty>
			<LogEventProperty ID="Processor" Name="Processor">Pentium</LogEventProperty>
			<LogEventProperty ID="Display Resolution" Name="Display Resolution">1024x768</LogEventProperty>
			<LogEventProperty ID="Display Color Bits" Name="Display Color Bits">32</LogEventProperty>
			<LogEventProperty ID="OS Service Pack" Name="OS Service Pack">Service Pack 4</LogEventProperty>
			<LogEventProperty ID="Memory Size" Name="Memory Size">248</LogEventProperty>
			<LogEventProperty ID="Processor Number" Name="Processor Number">1</LogEventProperty>
		</LogEvent>
		<LogEvent ID="Log Message">
			<LogEventProperty ID="Event Type" Name="Event Type">Log Message</LogEventProperty>
			<LogEventProperty ID="Start Date" Name="Start Date">09/04/2006</LogEventProperty>
			<LogEventProperty ID="Start Time" Name="Start Time">17:47:15</LogEventProperty>
			<LogEventProperty ID="End Date" Name="End Date">09/04/2006</LogEventProperty>
			<LogEventProperty ID="End Time" Name="End Time">17:47:15</LogEventProperty>
			<LogEventProperty ID="Result" Name="Result"> </LogEventProperty>
			<LogEventProperty ID="Failure Reason" Name="Failure Reason"> </LogEventProperty>
			<LogEventProperty ID="Failure Description" Name="Failure Description"></LogEventProperty>
			<LogEventProperty ID="Additional Information" Name="Additional Information">Code Tiers : 3 - (ligne n° 2,colonne n° 2)</LogEventProperty>
			<LogEventProperty ID="Additional Output" Name="Additional Output"></LogEventProperty>
			<LogEventProperty ID="Script Line Number" Name="Script Line Number">0</LogEventProperty>
			<LogEventProperty ID="Script Name" Name="Script Name">_PAR_Paramatrage2</LogEventProperty>
			<LogEventProperty ID="Operating System" Name="Operating System">Windows</LogEventProperty>
			<LogEventProperty ID="OS Version" Name="OS Version">2000</LogEventProperty>
			<LogEventProperty ID="Processor" Name="Processor">Pentium</LogEventProperty>
			<LogEventProperty ID="Display Resolution" Name="Display Resolution">1024x768</LogEventProperty>
			<LogEventProperty ID="Display Color Bits" Name="Display Color Bits">32</LogEventProperty>
			<LogEventProperty ID="OS Service Pack" Name="OS Service Pack">Service Pack 4</LogEventProperty>
			<LogEventProperty ID="Memory Size" Name="Memory Size">248</LogEventProperty>
			<LogEventProperty ID="Processor Number" Name="Processor Number">1</LogEventProperty>
		</LogEvent>
		<LogEvent ID="Log Message">
			<LogEventProperty ID="Event Type" Name="Event Type">Log Message</LogEventProperty>
			<LogEventProperty ID="Start Date" Name="Start Date">09/04/2006</LogEventProperty>
			<LogEventProperty ID="Start Time" Name="Start Time">17:47:16</LogEventProperty>
			<LogEventProperty ID="End Date" Name="End Date">09/04/2006</LogEventProperty>
			<LogEventProperty ID="End Time" Name="End Time">17:47:16</LogEventProperty>
			<LogEventProperty ID="Result" Name="Result"> </LogEventProperty>
			<LogEventProperty ID="Failure Reason" Name="Failure Reason"> </LogEventProperty>
			<LogEventProperty ID="Failure Description" Name="Failure Description"></LogEventProperty>
			<LogEventProperty ID="Additional Information" Name="Additional Information">Code gestion : I045/3 - (ligne n° 2,colonne n° 3)</LogEventProperty>
			<LogEventProperty ID="Additional Output" Name="Additional Output"></LogEventProperty>
			<LogEventProperty ID="Script Line Number" Name="Script Line Number">0</LogEventProperty>
			<LogEventProperty ID="Script Name" Name="Script Name">_PAR_Paramatrage2</LogEventProperty>
			<LogEventProperty ID="Operating System" Name="Operating System">Windows</LogEventProperty>
			<LogEventProperty ID="OS Version" Name="OS Version">2000</LogEventProperty>
			<LogEventProperty ID="Processor" Name="Processor">Pentium</LogEventProperty>
			<LogEventProperty ID="Display Resolution" Name="Display Resolution">1024x768</LogEventProperty>
			<LogEventProperty ID="Display Color Bits" Name="Display Color Bits">32</LogEventProperty>
			<LogEventProperty ID="OS Service Pack" Name="OS Service Pack">Service Pack 4</LogEventProperty>
			<LogEventProperty ID="Memory Size" Name="Memory Size">248</LogEventProperty>
			<LogEventProperty ID="Processor Number" Name="Processor Number">1</LogEventProperty>
		</LogEvent>
		<LogEvent ID="Log Message">
			<LogEventProperty ID="Event Type" Name="Event Type">Log Message</LogEventProperty>
			<LogEventProperty ID="Start Date" Name="Start Date">09/04/2006</LogEventProperty>
			<LogEventProperty ID="Start Time" Name="Start Time">17:47:16</LogEventProperty>
			<LogEventProperty ID="End Date" Name="End Date">09/04/2006</LogEventProperty>
			<LogEventProperty ID="End Time" Name="End Time">17:47:16</LogEventProperty>
			<LogEventProperty ID="Result" Name="Result"> </LogEventProperty>
			<LogEventProperty ID="Failure Reason" Name="Failure Reason"> </LogEventProperty>
			<LogEventProperty ID="Failure Description" Name="Failure Description"></LogEventProperty>
			<LogEventProperty ID="Additional Information" Name="Additional Information">Code confiement : 045 - (ligne n° 2,colonne n° 4)</LogEventProperty>
			<LogEventProperty ID="Additional Output" Name="Additional Output"></LogEventProperty>
			<LogEventProperty ID="Script Line Number" Name="Script Line Number">0</LogEventProperty>
			<LogEventProperty ID="Script Name" Name="Script Name">_PAR_Paramatrage2</LogEventProperty>
			<LogEventProperty ID="Operating System" Name="Operating System">Windows</LogEventProperty>
			<LogEventProperty ID="OS Version" Name="OS Version">2000</LogEventProperty>
			<LogEventProperty ID="Processor" Name="Processor">Pentium</LogEventProperty>
			<LogEventProperty ID="Display Resolution" Name="Display Resolution">1024x768</LogEventProperty>
			<LogEventProperty ID="Display Color Bits" Name="Display Color Bits">32</LogEventProperty>
			<LogEventProperty ID="OS Service Pack" Name="OS Service Pack">Service Pack 4</LogEventProperty>
			<LogEventProperty ID="Memory Size" Name="Memory Size">248</LogEventProperty>
			<LogEventProperty ID="Processor Number" Name="Processor Number">1</LogEventProperty>
		</LogEvent>
		<LogEvent ID="Log Message">
			<LogEventProperty ID="Event Type" Name="Event Type">Log Message</LogEventProperty>
			<LogEventProperty ID="Start Date" Name="Start Date">09/04/2006</LogEventProperty>
			<LogEventProperty ID="Start Time" Name="Start Time">17:47:16</LogEventProperty>
			<LogEventProperty ID="End Date" Name="End Date">09/04/2006</LogEventProperty>
			<LogEventProperty ID="End Time" Name="End Time">17:47:16</LogEventProperty>
			<LogEventProperty ID="Result" Name="Result"> </LogEventProperty>
			<LogEventProperty ID="Failure Reason" Name="Failure Reason"> </LogEventProperty>
			<LogEventProperty ID="Failure Description" Name="Failure Description"></LogEventProperty>
			<LogEventProperty ID="Additional Information" Name="Additional Information">Libéllé court : ST HONORE EVOLUTION - (ligne n° 2,colonne n° 5)</LogEventProperty>
			<LogEventProperty ID="Additional Output" Name="Additional Output"></LogEventProperty>
			<LogEventProperty ID="Script Line Number" Name="Script Line Number">0</LogEventProperty>
			<LogEventProperty ID="Script Name" Name="Script Name">_PAR_Paramatrage2</LogEventProperty>
			<LogEventProperty ID="Operating System" Name="Operating System">Windows</LogEventProperty>
			<LogEventProperty ID="OS Version" Name="OS Version">2000</LogEventProperty>
			<LogEventProperty ID="Processor" Name="Processor">Pentium</LogEventProperty>
			<LogEventProperty ID="Display Resolution" Name="Display Resolution">1024x768</LogEventProperty>
			<LogEventProperty ID="Display Color Bits" Name="Display Color Bits">32</LogEventProperty>
			<LogEventProperty ID="OS Service Pack" Name="OS Service Pack">Service Pack 4</LogEventProperty>
			<LogEventProperty ID="Memory Size" Name="Memory Size">248</LogEventProperty>
			<LogEventProperty ID="Processor Number" Name="Processor Number">1</LogEventProperty>
		</LogEvent>
		<LogEvent ID="Log Message">
			<LogEventProperty ID="Event Type" Name="Event Type">Log Message</LogEventProperty>
			<LogEventProperty ID="Start Date" Name="Start Date">09/04/2006</LogEventProperty>
			<LogEventProperty ID="Start Time" Name="Start Time">17:47:16</LogEventProperty>
			<LogEventProperty ID="End Date" Name="End Date">09/04/2006</LogEventProperty>
			<LogEventProperty ID="End Time" Name="End Time">17:47:16</LogEventProperty>
			<LogEventProperty ID="Result" Name="Result"> </LogEventProperty>
			<LogEventProperty ID="Failure Reason" Name="Failure Reason"> </LogEventProperty>
			<LogEventProperty ID="Failure Description" Name="Failure Description"></LogEventProperty>
			<LogEventProperty ID="Additional Information" Name="Additional Information">Libellé long : SAINT HONORE EVOLUTION - (ligne n° 2,colonne n° 6)</LogEventProperty>
			<LogEventProperty ID="Additional Output" Name="Additional Output"></LogEventProperty>
			<LogEventProperty ID="Script Line Number" Name="Script Line Number">0</LogEventProperty>
			<LogEventProperty ID="Script Name" Name="Script Name">_PAR_Paramatrage2</LogEventProperty>
			<LogEventProperty ID="Operating System" Name="Operating System">Windows</LogEventProperty>
			<LogEventProperty ID="OS Version" Name="OS Version">2000</LogEventProperty>
			<LogEventProperty ID="Processor" Name="Processor">Pentium</LogEventProperty>
			<LogEventProperty ID="Display Resolution" Name="Display Resolution">1024x768</LogEventProperty>
			<LogEventProperty ID="Display Color Bits" Name="Display Color Bits">32</LogEventProperty>
			<LogEventProperty ID="OS Service Pack" Name="OS Service Pack">Service Pack 4</LogEventProperty>
			<LogEventProperty ID="Memory Size" Name="Memory Size">248</LogEventProperty>
			<LogEventProperty ID="Processor Number" Name="Processor Number">1</LogEventProperty>
		</LogEvent>
		<LogEvent ID="Log Message">
			<LogEventProperty ID="Event Type" Name="Event Type">Log Message</LogEventProperty>
			<LogEventProperty ID="Start Date" Name="Start Date">09/04/2006</LogEventProperty>
			<LogEventProperty ID="Start Time" Name="Start Time">17:47:16</LogEventProperty>
			<LogEventProperty ID="End Date" Name="End Date">09/04/2006</LogEventProperty>
			<LogEventProperty ID="End Time" Name="End Time">17:47:16</LogEventProperty>
			<LogEventProperty ID="Result" Name="Result"> </LogEventProperty>
			<LogEventProperty ID="Failure Reason" Name="Failure Reason"> </LogEventProperty>
			<LogEventProperty ID="Failure Description" Name="Failure Description"></LogEventProperty>
			<LogEventProperty ID="Additional Information" Name="Additional Information">Code Confiement Garantie (1) : EPAR_RET - (ligne n° 2,colonne n° 7)</LogEventProperty>
			<LogEventProperty ID="Additional Output" Name="Additional Output"></LogEventProperty>
			<LogEventProperty ID="Script Line Number" Name="Script Line Number">0</LogEventProperty>
			<LogEventProperty ID="Script Name" Name="Script Name">_PAR_Paramatrage2</LogEventProperty>
			<LogEventProperty ID="Operating System" Name="Operating System">Windows</LogEventProperty>
			<LogEventProperty ID="OS Version" Name="OS Version">2000</LogEventProperty>
			<LogEventProperty ID="Processor" Name="Processor">Pentium</LogEventProperty>
			<LogEventProperty ID="Display Resolution" Name="Display Resolution">1024x768</LogEventProperty>
			<LogEventProperty ID="Display Color Bits" Name="Display Color Bits">32</LogEventProperty>
			<LogEventProperty ID="OS Service Pack" Name="OS Service Pack">Service Pack 4</LogEventProperty>
			<LogEventProperty ID="Memory Size" Name="Memory Size">248</LogEventProperty>
			<LogEventProperty ID="Processor Number" Name="Processor Number">1</LogEventProperty>
		</LogEvent>
		<LogEvent ID="Log Message">
			<LogEventProperty ID="Event Type" Name="Event Type">Log Message</LogEventProperty>
			<LogEventProperty ID="Start Date" Name="Start Date">09/04/2006</LogEventProperty>
			<LogEventProperty ID="Start Time" Name="Start Time">17:47:16</LogEventProperty>
			<LogEventProperty ID="End Date" Name="End Date">09/04/2006</LogEventProperty>
			<LogEventProperty ID="End Time" Name="End Time">17:47:16</LogEventProperty>
			<LogEventProperty ID="Result" Name="Result"> </LogEventProperty>
			<LogEventProperty ID="Failure Reason" Name="Failure Reason"> </LogEventProperty>
			<LogEventProperty ID="Failure Description" Name="Failure Description"></LogEventProperty>
			<LogEventProperty ID="Additional Information" Name="Additional Information">Insertion garanties (1) : EPARGNE RETRAITE - (ligne n° 2,colonne n° 8)</LogEventProperty>
			<LogEventProperty ID="Additional Output" Name="Additional Output"></LogEventProperty>
			<LogEventProperty ID="Script Line Number" Name="Script Line Number">0</LogEventProperty>
			<LogEventProperty ID="Script Name" Name="Script Name">_PAR_Paramatrage2</LogEventProperty>
			<LogEventProperty ID="Operating System" Name="Operating System">Windows</LogEventProperty>
			<LogEventProperty ID="OS Version" Name="OS Version">2000</LogEventProperty>
			<LogEventProperty ID="Processor" Name="Processor">Pentium</LogEventProperty>
			<LogEventProperty ID="Display Resolution" Name="Display Resolution">1024x768</LogEventProperty>
			<LogEventProperty ID="Display Color Bits" Name="Display Color Bits">32</LogEventProperty>
			<LogEventProperty ID="OS Service Pack" Name="OS Service Pack">Service Pack 4</LogEventProperty>
			<LogEventProperty ID="Memory Size" Name="Memory Size">248</LogEventProperty>
			<LogEventProperty ID="Processor Number" Name="Processor Number">1</LogEventProperty>
		</LogEvent>
		<LogEvent ID="Log Message">
			<LogEventProperty ID="Event Type" Name="Event Type">Log Message</LogEventProperty>
			<LogEventProperty ID="Start Date" Name="Start Date">09/04/2006</LogEventProperty>
			<LogEventProperty ID="Start Time" Name="Start Time">17:47:16</LogEventProperty>
			<LogEventProperty ID="End Date" Name="End Date">09/04/2006</LogEventProperty>
			<LogEventProperty ID="End Time" Name="End Time">17:47:16</LogEventProperty>
			<LogEventProperty ID="Result" Name="Result"> </LogEventProperty>
			<LogEventProperty ID="Failure Reason" Name="Failure Reason"> </LogEventProperty>
			<LogEventProperty ID="Failure Description" Name="Failure Description"></LogEventProperty>
			<LogEventProperty ID="Additional Information" Name="Additional Information">Code Confiement Garantie (2) : LIBRE - (ligne n° 2,colonne n° 9)</LogEventProperty>
			<LogEventProperty ID="Additional Output" Name="Additional Output"></LogEventProperty>
			<LogEventProperty ID="Script Line Number" Name="Script Line Number">0</LogEventProperty>
			<LogEventProperty ID="Script Name" Name="Script Name">_PAR_Paramatrage2</LogEventProperty>
			<LogEventProperty ID="Operating System" Name="Operating System">Windows</LogEventProperty>
			<LogEventProperty ID="OS Version" Name="OS Version">2000</LogEventProperty>
			<LogEventProperty ID="Processor" Name="Processor">Pentium</LogEventProperty>
			<LogEventProperty ID="Display Resolution" Name="Display Resolution">1024x768</LogEventProperty>
			<LogEventProperty ID="Display Color Bits" Name="Display Color Bits">32</LogEventProperty>
			<LogEventProperty ID="OS Service Pack" Name="OS Service Pack">Service Pack 4</LogEventProperty>
			<LogEventProperty ID="Memory Size" Name="Memory Size">248</LogEventProperty>
			<LogEventProperty ID="Processor Number" Name="Processor Number">1</LogEventProperty>
		</LogEvent>
		<LogEvent ID="Log Message">
			<LogEventProperty ID="Event Type" Name="Event Type">Log Message</LogEventProperty>
			<LogEventProperty ID="Start Date" Name="Start Date">09/04/2006</LogEventProperty>
			<LogEventProperty ID="Start Time" Name="Start Time">17:47:17</LogEventProperty>
			<LogEventProperty ID="End Date" Name="End Date">09/04/2006</LogEventProperty>
			<LogEventProperty ID="End Time" Name="End Time">17:47:17</LogEventProperty>
			<LogEventProperty ID="Result" Name="Result"> </LogEventProperty>
			<LogEventProperty ID="Failure Reason" Name="Failure Reason"> </LogEventProperty>
			<LogEventProperty ID="Failure Description" Name="Failure Description"></LogEventProperty>
			<LogEventProperty ID="Additional Information" Name="Additional Information">Insertion garanties (2) : Orientation libre - (ligne n° 2,colonne n° 10)</LogEventProperty>
			<LogEventProperty ID="Additional Output" Name="Additional Output"></LogEventProperty>
			<LogEventProperty ID="Script Line Number" Name="Script Line Number">0</LogEventProperty>
			<LogEventProperty ID="Script Name" Name="Script Name">_PAR_Paramatrage2</LogEventProperty>
			<LogEventProperty ID="Operating System" Name="Operating System">Windows</LogEventProperty>
			<LogEventProperty ID="OS Version" Name="OS Version">2000</LogEventProperty>
			<LogEventProperty ID="Processor" Name="Processor">Pentium</LogEventProperty>
			<LogEventProperty ID="Display Resolution" Name="Display Resolution">1024x768</LogEventProperty>
			<LogEventProperty ID="Display Color Bits" Name="Display Color Bits">32</LogEventProperty>
			<LogEventProperty ID="OS Service Pack" Name="OS Service Pack">Service Pack 4</LogEventProperty>
			<LogEventProperty ID="Memory Size" Name="Memory Size">248</LogEventProperty>
			<LogEventProperty ID="Processor Number" Name="Processor Number">1</LogEventProperty>
		</LogEvent>
		<LogEvent ID="Log Message">
			<LogEventProperty ID="Event Type" Name="Event Type">Log Message</LogEventProperty>
			<LogEventProperty ID="Start Date" Name="Start Date">09/04/2006</LogEventProperty>
			<LogEventProperty ID="Start Time" Name="Start Time">17:47:17</LogEventProperty>
			<LogEventProperty ID="End Date" Name="End Date">09/04/2006</LogEventProperty>
			<LogEventProperty ID="End Time" Name="End Time">17:47:17</LogEventProperty>
			<LogEventProperty ID="Result" Name="Result"> </LogEventProperty>
			<LogEventProperty ID="Failure Reason" Name="Failure Reason"> </LogEventProperty>
			<LogEventProperty ID="Failure Description" Name="Failure Description"></LogEventProperty>
			<LogEventProperty ID="Additional Information" Name="Additional Information">Code Confiement Garantie (3) : DEDIE - (ligne n° 2,colonne n° 11)</LogEventProperty>
			<LogEventProperty ID="Additional Output" Name="Additional Output"></LogEventProperty>
			<LogEventProperty ID="Script Line Number" Name="Script Line Number">0</LogEventProperty>
			<LogEventProperty ID="Script Name" Name="Script Name">_PAR_Paramatrage2</LogEventProperty>
			<LogEventProperty ID="Operating System" Name="Operating System">Windows</LogEventProperty>
			<LogEventProperty ID="OS Version" Name="OS Version">2000</LogEventProperty>
			<LogEventProperty ID="Processor" Name="Processor">Pentium</LogEventProperty>
			<LogEventProperty ID="Display Resolution" Name="Display Resolution">1024x768</LogEventProperty>
			<LogEventProperty ID="Display Color Bits" Name="Display Color Bits">32</LogEventProperty>
			<LogEventProperty ID="OS Service Pack" Name="OS Service Pack">Service Pack 4</LogEventProperty>
			<LogEventProperty ID="Memory Size" Name="Memory Size">248</LogEventProperty>
			<LogEventProperty ID="Processor Number" Name="Processor Number">1</LogEventProperty>
		</LogEvent>
		<LogEvent ID="Abort">
			<LogEventProperty ID="Event Type" Name="Event Type">Abort</LogEventProperty>
			<LogEventProperty ID="Start Date" Name="Start Date">09/04/2006</LogEventProperty>
			<LogEventProperty ID="Start Time" Name="Start Time">17:59:41</LogEventProperty>
			<LogEventProperty ID="End Date" Name="End Date">09/04/2006</LogEventProperty>
			<LogEventProperty ID="End Time" Name="End Time">17:59:41</LogEventProperty>
			<LogEventProperty ID="Result" Name="Result">Fail</LogEventProperty>
			<LogEventProperty ID="Failure Reason" Name="Failure Reason"> </LogEventProperty>
			<LogEventProperty ID="Failure Description" Name="Failure Description"></LogEventProperty>
			<LogEventProperty ID="Additional Information" Name="Additional Information">WriteLogMessage ,"Destination d'archivage :  - (ligne n° 3,colonne n° 21)",""</LogEventProperty>
			<LogEventProperty ID="Additional Output" Name="Additional Output"></LogEventProperty>
			<LogEventProperty ID="Script Line Number" Name="Script Line Number">1642</LogEventProperty>
			<LogEventProperty ID="Script Name" Name="Script Name">_PAR_Paramatrage2</LogEventProperty>
			<LogEventProperty ID="Operating System" Name="Operating System">Windows</LogEventProperty>
			<LogEventProperty ID="OS Version" Name="OS Version">2000</LogEventProperty>
			<LogEventProperty ID="Processor" Name="Processor">Pentium</LogEventProperty>
			<LogEventProperty ID="Display Resolution" Name="Display Resolution">1024x768</LogEventProperty>
			<LogEventProperty ID="Display Color Bits" Name="Display Color Bits">32</LogEventProperty>
			<LogEventProperty ID="OS Service Pack" Name="OS Service Pack">Service Pack 4</LogEventProperty>
			<LogEventProperty ID="Memory Size" Name="Memory Size">248</LogEventProperty>
			<LogEventProperty ID="Processor Number" Name="Processor Number">1</LogEventProperty>
		</LogEvent>
	</LogEvent>
</TestLog>
Et voici le Xsl que j'ai écrit:

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
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
<?xml version="1.0"?>
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xml:lang="fr" lang="fr">
	<xsl:output method="html"/>
 
	<xsl:template match="/">
		<xsl:variable name="EtatGeneral" select="/TestLog/LogEvent[@ID = 'Script Start']/LogEventProperty[@ID = 'Result']/text()"/>
		<html>
			<head>
				<title>Script lancé : <xsl:value-of select="/TestLog/LogEvent[@ID = 'Script Start']/LogEventProperty[@ID = 'Script Name']"/></title>
			</head>
 
			<body bgcolor="white">
 
				<!--xsl:choose>
					<xsl:when test="$EtatGeneral = 'Fail'"></xsl:when>
					<xsl:text>TEST en Fail</xsl:text>
					<xsl:when test="$EtatGeneral = 'Pass'"></xsl:when>
					<xsl:text>TEST en Pass</xsl:text>
					<xsl:otherwise>
						<xsl:text>  Essai ecriture  </xsl:text>
					</xsl:otherwise>
				</xsl:choose-->
 
 
				<p>
					<h2>Script lancé : <xsl:value-of select="/TestLog/LogEvent[@ID = 'Script Start']/LogEventProperty[@ID = 'Script Name']/text()"/></h2>
				</p>
				<b>
					<xsl:text>Résultat global : </xsl:text>
					<xsl:value-of select="/TestLog/LogEvent[@ID = 'Script Start']/LogEventProperty[@ID = 'Result']/text()"/>
				</b>
				<br/>
				<br/>
				<table border="5" cellspacing="2" cellpadding="5">
 
					<tr bgcolor="lightyellow">
						<th align="left">Type</th>
						<th align="left">Ligne</th>
						<th align="left">Détail</th>
						<th align="left">Statut</th>
						<th align="left">Temps</th>
					</tr>
					<xsl:for-each select="/TestLog/LogEvent[@ID = 'Script Start']/LogEvent">
						<tr>
 
							<td align="left">
								<xsl:value-of select="LogEventProperty[@ID = 'Event Type']/text()"/>
							</td>
							<td align="left">
								<xsl:text></xsl:text><xsl:value-of select="LogEventProperty[@ID = 'Script Line Number']/text()"/>
							</td>
							<td>
								<xsl:value-of select="LogEventProperty[@ID = 'Additional Information']/text()"/>
							</td>
 
							<!--xsl:variable name="valeur" select="//LogEventProperty[@ID = 'Result']/text()"/>
 
							<xsl:choose>
								<xsl:when test="$valeur = 'Fail'"></xsl:when>
								<td bgcolor="#00FFFF">
									<xsl:value-of select="LogEventProperty[@ID = 'Result']/text()"/>
								</td>
								<xsl:when test="$valeur = 'Pass'"></xsl:when>
								<td bgcolor="#55FFAA">
									<xsl:value-of select="LogEventProperty[@ID = 'Result']/text()"/>
								</td>
								<xsl:when test="$valeur = 'Warning'"></xsl:when>
								<td bgcolor="#FF22FF">
									<xsl:value-of select="LogEventProperty[@ID = 'Result']/text()"/>
								</td>
								<xsl:when test="$valeur = 'Information'"></xsl:when>
								<td bgcolor="#FFFF00">
									<xsl:value-of select="LogEventProperty[@ID = 'Result']/text()"/>
								</td>
								<xsl:otherwise></xsl:otherwise>
								<td>
									<xsl:value-of select="LogEventProperty[@ID = 'Result']/text()"/>
								</td>
							</xsl:choose-->
 
							<td>
								<xsl:value-of select="LogEventProperty[@ID = 'Result']/text()"/>
							</td>
							<td>
								<xsl:value-of select="LogEventProperty[@ID = 'Start Time']/text()"/>
							</td>
						</tr>
					</xsl:for-each>
				</table>
			</body>
		</html>
	</xsl:template>
 
	<xsl:template match="NewTemplate">
	</xsl:template>
</xsl:stylesheet>
Je souhaite colorer les éléments $valeur en fonction du résultat.
Mon problème vient de la partie xsl choose: en effet, ma variable $valeur semble bien être alimentée, mais je ne passe pas dans le bloc xsl choose

Si une bonne ame pouvait me guider ...

Merci d'avance !!!