Bonjour,
J'utilise dans mon site les très célèbres players : flash flv player et flash mp3 player. L'inclusion de ce plugin dans une page se fait via le code html suivant :

Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
 
<div class='illustration'><p id='player_mp3_0'><a href='http://www.macromedia.com/go/getflashplayer'>Téléchargez Flash Player</a> pour lire ce média.</p><script type='text/javascript'>var FU = {movie:'javascript/flash_mp3_player/mp3player.swf',width:'600',height:'120',majorversion:'7',build:'0',bgcolor:'#FFFFFF',flashvars:'file=cache/xml/mp3_article_37_0.xml&repeat=true&showdigits=false&lightcolor=0x00AAFF&autoscroll=true&showeq=true' };UFO.create(     FU, 'player_mp3_0');</script></div>
Lors de la validation W3C j'obtiens une multitude d'erreurs liées à ce qui se trouve dans le javascript du code que je viens de vous donner.

Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
 
Result:  	 Failed validation, 18 errors
Address: 	
Encoding: 	iso-8859-1	
Doctype: 	XHTML 1.0 Strict	
Root Namespace: 	http://www.w3.org/1999/xhtml
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
 
   1.  Warning  Line 22 column 361: cannot generate system identifier for general entity "repeat".
 
      ...rs:'file=cache/xml/mp3_article_37_0.xml&repeat=true&showdigits=false&lightcol
 
      An entity reference was found in the document, but there is no reference by that name defined. Often this is caused by misspelling the reference name, unencoded ampersands, or by leaving off the trailing semicolon (;). The most common cause of this error is unencoded ampersands in URLs as described by the WDG in "Ampersands in URLs".
 
      Entity references start with an ampersand (&) and end with a semicolon (;). If you want to use a literal ampersand in your document you must encode it as "&amp;" (even inside URLs!). Be careful to end entity references with a semicolon or your entity reference may get interpreted in connection with the following text. Also keep in mind that named entity references are case-sensitive; &Aelig; and &aelig; are different characters.
 
      If this error appears in some markup generated by PHP's session handling code, this article has explanations and solutions to your problem.
 
      Note that in most documents, errors related to entity references will trigger up to 5 separate messages from the Validator. Usually these will all disappear when the original problem is fixed.
 
      ✉
   2. Error Line 22 column 361: general entity "repeat" not defined and no default entity.
 
      ...rs:'file=cache/xml/mp3_article_37_0.xml&repeat=true&showdigits=false&lightcol
 
      This is usually a cascading error caused by a an undefined entity reference or use of an unencoded ampersand (&) in an URL or body text. See the previous message for further details.
 
      ✉
   3. Warning Line 22 column 367: reference not terminated by REFC delimiter.
 
      ...le=cache/xml/mp3_article_37_0.xml&repeat=true&showdigits=false&lightcolor=0x0
 
      If you meant to include an entity that starts with "&", then you should terminate it with ";". Another reason for this error message is that you inadvertently created an entity by failing to escape an "&" character just before this text.
 
      ✉
   4. Error Line 22 column 367: reference to entity "repeat" for which no system identifier could be generated.
 
      ...le=cache/xml/mp3_article_37_0.xml&repeat=true&showdigits=false&lightcolor=0x0
 
      This is usually a cascading error caused by a an undefined entity reference or use of an unencoded ampersand (&) in an URL or body text. See the previous message for further details.
 
      ✉
   5. Info Line 22 column 360: entity was defined here.
 
      ...ars:'file=cache/xml/mp3_article_37_0.xml&repeat=true&showdigits=false&lightco
 
   6. Warning Line 22 column 373: cannot generate system identifier for general entity "showdigits".
 
      ...he/xml/mp3_article_37_0.xml&repeat=true&showdigits=false&lightcolor=0x00AAFF&
 
      ✉
   7. Error Line 22 column 373: general entity "showdigits" not defined and no default entity.
 
      ...he/xml/mp3_article_37_0.xml&repeat=true&showdigits=false&lightcolor=0x00AAFF&
 
      ✉
   8. Warning Line 22 column 383: reference not terminated by REFC delimiter.
 
      ..._article_37_0.xml&repeat=true&showdigits=false&lightcolor=0x00AAFF&autoscroll
 
      ✉
   9. Error Line 22 column 383: reference to entity "showdigits" for which no system identifier could be generated.
 
      ..._article_37_0.xml&repeat=true&showdigits=false&lightcolor=0x00AAFF&autoscroll
 
      ✉
  10. Info Line 22 column 372: entity was defined here.
 
      ...che/xml/mp3_article_37_0.xml&repeat=true&showdigits=false&lightcolor=0x00AAFF
 
  11. Warning Line 22 column 390: cannot generate system identifier for general entity "lightcolor".
 
      ...e_37_0.xml&repeat=true&showdigits=false&lightcolor=0x00AAFF&autoscroll=true&s
 
      ✉
  12. Error Line 22 column 390: general entity "lightcolor" not defined and no default entity.
 
      ...e_37_0.xml&repeat=true&showdigits=false&lightcolor=0x00AAFF&autoscroll=true&s
 
      ✉
  13. Warning Line 22 column 400: reference not terminated by REFC delimiter.
 
      ...&repeat=true&showdigits=false&lightcolor=0x00AAFF&autoscroll=true&showeq=true
 
      ✉
  14. Error Line 22 column 400: reference to entity "lightcolor" for which no system identifier could be generated.
 
      ...&repeat=true&showdigits=false&lightcolor=0x00AAFF&autoscroll=true&showeq=true
 
      ✉
  15. Info Line 22 column 389: entity was defined here.
 
      ...le_37_0.xml&repeat=true&showdigits=false&lightcolor=0x00AAFF&autoscroll=true&
 
  16. Warning Line 22 column 410: cannot generate system identifier for general entity "autoscroll".
 
      ...ue&showdigits=false&lightcolor=0x00AAFF&autoscroll=true&showeq=true' };UFO.cr
 
      ✉
  17. Error Line 22 column 410: general entity "autoscroll" not defined and no default entity.
 
      ...ue&showdigits=false&lightcolor=0x00AAFF&autoscroll=true&showeq=true' };UFO.cr
 
      ✉
  18. Warning Line 22 column 420: reference not terminated by REFC delimiter.
 
      ...its=false&lightcolor=0x00AAFF&autoscroll=true&showeq=true' };UFO.create(	FU, 
 
      ✉
  19. Error Line 22 column 420: reference to entity "autoscroll" for which no system identifier could be generated.
 
      ...its=false&lightcolor=0x00AAFF&autoscroll=true&showeq=true' };UFO.create(	FU, 
 
      ✉
  20. Info Line 22 column 409: entity was defined here.
 
      ...rue&showdigits=false&lightcolor=0x00AAFF&autoscroll=true&showeq=true' };UFO.c
 
  21. Warning Line 22 column 426: cannot generate system identifier for general entity "showeq".
 
      ...lse&lightcolor=0x00AAFF&autoscroll=true&showeq=true' };UFO.create(	FU, 'playe
 
      ✉
  22. Error Line 22 column 426: general entity "showeq" not defined and no default entity.
 
      ...lse&lightcolor=0x00AAFF&autoscroll=true&showeq=true' };UFO.create(	FU, 'playe
 
      ✉
  23. Warning Line 22 column 432: reference not terminated by REFC delimiter.
 
      ...ghtcolor=0x00AAFF&autoscroll=true&showeq=true' };UFO.create(	FU, 'player_mp3_
 
      ✉
  24. Error Line 22 column 432: reference to entity "showeq" for which no system identifier could be generated.
 
      ...ghtcolor=0x00AAFF&autoscroll=true&showeq=true' };UFO.create(	FU, 'player_mp3_
 
      ✉
  25. Info Line 22 column 425: entity was defined here.
 
      ...alse&lightcolor=0x00AAFF&autoscroll=true&showeq=true' };UFO.create(	FU, 'play
 
  26. Warning Line 23 column 362: cannot generate system identifier for general entity "displayheight".
 
      ...rs:'file=cache/xml/flv_article_37_0.xml&displayheight=510&repeat=true&lightco
 
      ✉
  27. Error Line 23 column 362: general entity "displayheight" not defined and no default entity.
 
      ...rs:'file=cache/xml/flv_article_37_0.xml&displayheight=510&repeat=true&lightco
 
      ✉
  28. Warning Line 23 column 375: reference not terminated by REFC delimiter.
 
      ...e/xml/flv_article_37_0.xml&displayheight=510&repeat=true&lightcolor=0x00AAFF&
 
      ✉
  29. Error Line 23 column 375: reference to entity "displayheight" for which no system identifier could be generated.
 
      ...e/xml/flv_article_37_0.xml&displayheight=510&repeat=true&lightcolor=0x00AAFF&
 
      ✉
  30. Info Line 23 column 361: entity was defined here.
 
      ...ars:'file=cache/xml/flv_article_37_0.xml&displayheight=510&repeat=true&lightc
 
  31. Warning Line 23 column 386: reference not terminated by REFC delimiter.
 
      ...rticle_37_0.xml&displayheight=510&repeat=true&lightcolor=0x00AAFF&backcolor=0
 
      ✉
  32. Error Line 23 column 386: reference to entity "repeat" for which no system identifier could be generated.
 
      ...rticle_37_0.xml&displayheight=510&repeat=true&lightcolor=0x00AAFF&backcolor=0
 
      ✉
  33. Info Line 22 column 360: entity was defined here.
 
      ...ars:'file=cache/xml/mp3_article_37_0.xml&repeat=true&showdigits=false&lightco
 
  34. Warning Line 23 column 402: reference not terminated by REFC delimiter.
 
      ...displayheight=510&repeat=true&lightcolor=0x00AAFF&backcolor=0xFFFFFF&frontcol
 
      ✉
  35. Error Line 23 column 402: reference to entity "lightcolor" for which no system identifier could be generated.
 
      ...displayheight=510&repeat=true&lightcolor=0x00AAFF&backcolor=0xFFFFFF&frontcol
 
      ✉
  36. Info Line 22 column 389: entity was defined here.
 
      ...le_37_0.xml&repeat=true&showdigits=false&lightcolor=0x00AAFF&autoscroll=true&
 
  37. Warning Line 23 column 412: cannot generate system identifier for general entity "backcolor".
 
      ...ght=510&repeat=true&lightcolor=0x00AAFF&backcolor=0xFFFFFF&frontcolor=0x00000
 
      ✉
  38. Error Line 23 column 412: general entity "backcolor" not defined and no default entity.
 
      ...ght=510&repeat=true&lightcolor=0x00AAFF&backcolor=0xFFFFFF&frontcolor=0x00000
 
      ✉
  39. Warning Line 23 column 421: reference not terminated by REFC delimiter.
 
      ...epeat=true&lightcolor=0x00AAFF&backcolor=0xFFFFFF&frontcolor=0x000000' };UFO.
 
      ✉
  40. Error Line 23 column 421: reference to entity "backcolor" for which no system identifier could be generated.
 
      ...epeat=true&lightcolor=0x00AAFF&backcolor=0xFFFFFF&frontcolor=0x000000' };UFO.
 
      ✉
  41. Info Line 23 column 411: entity was defined here.
 
      ...ight=510&repeat=true&lightcolor=0x00AAFF&backcolor=0xFFFFFF&frontcolor=0x0000
 
  42. Warning Line 23 column 431: cannot generate system identifier for general entity "frontcolor".
 
      ...&lightcolor=0x00AAFF&backcolor=0xFFFFFF&frontcolor=0x000000' };UFO.create(FU,
 
      ✉
  43. Error Line 23 column 431: general entity "frontcolor" not defined and no default entity.
 
      ...&lightcolor=0x00AAFF&backcolor=0xFFFFFF&frontcolor=0x000000' };UFO.create(FU,
 
      ✉
  44. Warning Line 23 column 441: reference not terminated by REFC delimiter.
 
      ...r=0x00AAFF&backcolor=0xFFFFFF&frontcolor=0x000000' };UFO.create(FU, 'player_f
 
      ✉
  45. Error Line 23 column 441: reference to entity "frontcolor" for which no system identifier could be generated.
 
      ...r=0x00AAFF&backcolor=0xFFFFFF&frontcolor=0x000000' };UFO.create(FU, 'player_f
 
      ✉
  46. Info Line 23 column 430: entity was defined here.
 
      ...e&lightcolor=0x00AAFF&backcolor=0xFFFFFF&frontcolor=0x000000' };UFO.create(FU
Que faire ???
Merci