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
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
|
<h3 id="preparse_warnings">Important Warnings</h3>
<p>The validator has found the following problem(s) prior to validation,
which should be addressed in priority:</p>
<ol id="warnings">
<TMPL_IF NAME="W01">
<li class="msg_warn" id="W01"><span class="err_type"><img src="images/info_icons/warning.png" alt="Warning" title="Warning" /></span> <span class="msg">Missing "<code>charset</code>" attribute for
"<code><TMPL_VAR NAME="W01_ct" ESCAPE="HTML"></code>" document.</span>
<p>
The HTTP <code>Content-Type</code> header
(<code><TMPL_VAR NAME="W01_ct" ESCAPE="HTML"></code>) sent by your web
<TMPL_IF NAME="W01_upload">browser<TMPL_ELSE>server</TMPL_IF>
(<code><TMPL_VAR NAME="W01_agent" ESCAPE="HTML"></code>) did not contain
a "<code>charset</code>" parameter, but the Content-Type was one of
the XML <code>text/*</code> sub-types.
</p>
<p>
The relevant specification
(<a href="http://www.ietf.org/rfc/rfc3023.txt">RFC 3023</a>)
specifies a strong default of "<code>us-ascii</code>" for
such documents so we will use this value regardless of any encoding you
may have indicated elsewhere.
<p>
If you would like to use a different encoding, you should arrange to have
your <TMPL_IF NAME="W01_upload">browser<TMPL_ELSE>server</TMPL_IF> send
this new encoding information.
</p>
</li>
</TMPL_IF>
<TMPL_IF NAME="W02">
<li class="msg_warn" id="W02"><span class="err_type"><img src="images/info_icons/warning.png" alt="Warning" title="Warning" /></span> <span class="msg">No Character Encoding Found!</span>
<p>
Falling back to
"<code><TMPL_VAR NAME="W02_charset" ESCAPE="HTML"></code>"
(<a href="docs/users.html#fbc">explain...</a>).
</p>
</li>
</TMPL_IF>
<TMPL_IF NAME="W03">
<li class="msg_warn" id="W03"><span class="err_type"><img src="images/info_icons/warning.png" alt="Warning" title="Warning" /></span> <span class="msg">Character Encoding Override in effect!</span>
<p>
The detected character encoding
"<code><TMPL_VAR NAME="W03_use" ESCAPE="HTML"></code>"
has been suppressed and
"<code><TMPL_VAR NAME="W03_opt" ESCAPE="HTML"></code>" used instead.
</p>
</li>
</TMPL_IF>
<TMPL_IF NAME="W04">
<li class="msg_warn" id="W04"><span class="err_type"><img src="images/info_icons/warning.png" alt="Warning" title="Warning" /></span> <span class="msg">No Character Encoding Found!</span>
<TMPL_IF NAME="W04_override">
Using
<TMPL_ELSE>
Falling back to
</TMPL_IF>
<code><TMPL_IF NAME="W04_charset"><TMPL_VAR NAME="W04_charset" ESCAPE="HTML"><TMPL_ELSE>UTF-8</TMPL_IF></code>.
<TMPL_IF NAME="W04_override">
<p>I was not able to extract a character encoding labeling from any of
the valid sources for such information. I will use the character
encoding <code><TMPL_IF NAME="W04_charset"><TMPL_VAR NAME="W04_charset" ESCAPE="HTML"><TMPL_ELSE>UTF-8</TMPL_IF></code>,
which you have chosen via the <code>Encoding</code> override option, for
tentative validation.
</p>
<TMPL_ELSE>
<p>
I was not able to extract a character encoding labeling from any of
the valid sources for such information. Without encoding information
it is impossible to reliably validate the document. I'm falling back
to the "<code><TMPL_IF NAME="W04_charset"><TMPL_VAR NAME="W04_charset" ESCAPE="HTML"><TMPL_ELSE>UTF-8</TMPL_IF></code>"
encoding and will attempt to perform the validation,
but this is likely to fail for all non-trivial documents.
</p>
</TMPL_IF>
<TMPL_IF NAME="opt_verbose">
<p>The sources I tried to find encoding information include:</p>
<ul>
<li>The HTTP Content-Type field.</li>
<li>The XML Declaration.</li>
<li>The HTML "META" element.</li>
</ul>
<p>
And I even tried to autodetect it using the algorithm defined in
<a href="http://www.w3.org/TR/REC-xml#sec-guessing">Appendix F of
the XML 1.0 Recommendation</a>.
</p>
<p>
Since none of these sources yielded any usable information, I will not be
able to reliably validate this document. Sorry. Please make sure you
specify the character encoding in use.
</p>
<p>Specifying a character encoding is typically done by the web server
configuration, by the scripts that put together pages, and inside the
document itself. <a href="http://www.iana.org/"><abbr title="Internet Assigned Numbers Authority">IANA</abbr></a>
maintains the list of
<a href="http://www.iana.org/assignments/character-sets">official names for character
encodings</a> (called charsets in this context). You can choose from a number
of encodings, though we recommend UTF-8 as particularly useful.</p>
<p>The W3C <abbr title="Internationalization">I18N</abbr> Activity has collected a
<a href="http://www.w3.org/International/O-charset">few tips on
how to do this</a>.</p>
<p>
To quickly check whether the document would validate after addressing
the missing character encoding information, you can use the "Encoding"
form control earlier in the page to force an encoding
override to take effect. "iso-8859-1" (Western Europe and North America)
and "utf-8" (Universal, but not commonly used in legacy documents) are
common encodings if you are not sure what encoding to choose.
</p>
<TMPL_ELSE>
<p>Read the <a href="docs/help.html#faq-charset"><acronym title="Frequently Asked Questions">FAQ</acronym>
entry on character encoding</a> for more details and pointers on how to fix this problem with your document.</p>
</TMPL_IF>
</li>
</TMPL_IF>
<TMPL_IF NAME="W05">
<li class="msg_warn" id="W05"><span class="err_type"><img src="images/info_icons/warning.png" alt="Warning" title="Warning" /></span> <span class="msg"><code>DOCTYPE</code> Override in effect!</span>
<p>
Any DOCTYPE Declaration in the document has been suppressed and the
DOCTYPE for "<code><TMPL_VAR NAME="W05_dtd" ESCAPE="HTML"></code>"
inserted instead. The document will not be Valid until you alter the
source file to reflect this new DOCTYPE.
</p>
</li>
</TMPL_IF>
<TMPL_IF NAME="W23">
<li class="msg_warn" id="W23"><span class="err_type"><img src="images/info_icons/warning.png" alt="Warning" title="Warning" /></span> <span class="msg">Conflict between Mime Type and Document Type</span>
<p>The document is being served with the <code><TMPL_VAR NAME="W23_type" ESCAPE="HTML"></code> Mime Type
which is not a registered media type for the
<code><TMPL_VAR NAME="W23_doctype" ESCAPE="HTML"></code> Document Type. The recommended media type
for this document is: <code><TMPL_VAR NAME="W23_type_pref" ESCAPE="HTML"></code></p>
<p>Using a wrong media type for a certain document type may
confuse the validator and other user agents with respect to the
nature of the document, and you may get some erroneous validation
errors. How to fix this problem? One of the following techniques should help:</p>
<ul>
<li>If you are serving a static file on a Web server, changing its extension should help.
Use e.g <code>.xhtml</code> for XHTML or <code>.mathml</code> for MathML.
</li>
<li>You may need to reconfigure your Web server. This <a href="http://www.developershome.com/wap/wapServerSetup/tutorial.asp?page=settingUpMIME">Setting up MIME Types tutorial</a> has instructions for Apache, Tomcat and IIS.
</li>
<li>If the document is generated dynamically, the scripting language should allow you to set up the mime type:
this <a href="http://juicystudio.com/article/content-negotiation.php">article on MIME Types and Content Negotiation</a> has examples in PHP, Perl, and ASP.</li>
</ul>
</TMPL_IF>
<TMPL_IF NAME="W06">
<li class="msg_warn" id="W06"><span class="err_type"><img src="images/info_icons/warning.png" alt="Warning" title="Warning" /></span> <span class="msg">Unable to Determine Parse Mode!</span>
<p>Neither the MIME Media Type (<code><TMPL_VAR NAME="W06_mime" ESCAPE="HTML"></code>)
nor the document type for this document are sufficient to reliably choose
a parsing mode. Falling back to SGML mode.</p></li>
</TMPL_IF>
<TMPL_IF NAME="W07">
<li class="msg_warn" id="W07"><span class="err_type"><img src="images/info_icons/warning.png" alt="Warning" title="Warning" /></span> <span class="msg">Contradictory Parse Modes Detected!</span>
<p>
The MIME Media Type
(<code><TMPL_VAR NAME="W07_mime" ESCAPE="HTML"></code>) indicated parse
mode should be <TMPL_VAR NAME="W07_ct" ESCAPE="HTML">, but the
<code>DOCTYPE</code> Declaration indicates
<TMPL_VAR NAME="W07_dtd" ESCAPE="HTML"> mode. Using
<TMPL_VAR NAME="W07_ct" ESCAPE="HTML"> mode based on the
<code>Content-Type</code> header.
</p>
</li>
</TMPL_IF>
<TMPL_IF NAME="W08">
<li class="msg_warn" id="W08"><span class="err_type"><img src="images/info_icons/warning.png" alt="Warning" title="Warning" /></span> <span class="msg">Unknown Parse Mode!</span>
<p>
The MIME Media Type
(<code><TMPL_VAR NAME="W08_mime" ESCAPE="HTML"></code>) for this
document is used to serve both SGML and XML based documents,
and it is not possible to disambiguate it
based on the <code>DOCTYPE</code> Declaration in your document. Parsing
will continue in SGML mode.
</p>
</li>
</TMPL_IF>
<TMPL_IF NAME="W09">
<li class="msg_warn" id="W09"><span class="err_type"><img src="images/info_icons/warning.png" alt="Warning" title="Warning" /></span> <span class="msg">No <code>DOCTYPE</code> found! Attempting validation with <TMPL_VAR NAME="W09_dtd" ESCAPE="HTML">.</span>
<p>
The DOCTYPE Declaration was not recognized or is missing. This
probably means that the Formal Public Identifier contains a spelling
error, or that the Declaration is not using correct syntax. Validation
has been performed using a default "fallback" Document Type Definition
that closely resembles "<TMPL_VAR NAME="W09_dtd" ESCAPE="HTML">", but the
document will not be Valid until you have corrected this problem with the
DOCTYPE Declaration.
</p>
<TMPL_IF NAME="opt_verbose">
<p>
You should place a DOCTYPE declaration as the very first thing in your
HTML document. For example, for a typical <a
href="http://www.w3.org/TR/xhtml1/">XHTML 1.0</a> document:
</p>
<pre>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en">
<head>
<title>Title</title>
</head>
<body>
<!-- ... body of document ... -->
</body>
</html>
</pre>
<p>
For XML documents, you may also wish to include an "XML Declaration"
even before the DOCTYPE Declaration, but this is not well supported
in older browsers. More information about this can be found in the
<a href="http://www.w3.org/TR/xhtml1/">XHTML 1.0</a> Recommendation.
</p>
<p>
The W3C QA Activity maintains a <a
href="http://www.w3.org/QA/2002/04/valid-dtd-list.html">List of
Valid Doctypes</a> that you can choose from, and the <acronym
title="Web Design Group">WDG</acronym> maintains a document on
"<a href="http://htmlhelp.com/tools/validator/doctype.html">Choosing
a DOCTYPE</a>".
</p>
<TMPL_ELSE>
<p>Learn <a href="docs/help.html#faq-doctype">how to add a doctype to your document</a>
from our <acronym title="Frequently Asked Questions">FAQ</acronym>.</p>
</TMPL_IF>
</li>
</TMPL_IF>
<TMPL_IF NAME="W09xml">
<li class="msg_warn" id="W09xml"><span class="err_type"><img src="images/info_icons/warning.png" alt="Warning" title="Warning" /></span> <span class="msg">No <code>DOCTYPE</code> found! Checking XML syntax only.</span>
<p>
The DOCTYPE Declaration was not recognized or is missing. This
probably means that the Formal Public Identifier contains a spelling
error, or that the Declaration is not using correct syntax, or that
your XML document is not using a DOCTYPE Declaration.
</p>
<p>
Validation of the document has been skipped, and a simple check of the well-formedness
of the XML syntax has been performed instead.
</p>
<p>Learn <a href="docs/help.html#faq-doctype">how to add a doctype to your document</a>
from our <acronym title="Frequently Asked Questions">FAQ</acronym>, or use the validator's
option to validate your XML document against a specific Document Type</p>
</li>
</TMPL_IF>
<TMPL_IF NAME="W10">
<li class="msg_warn" id="W10"><span class="err_type"><img src="images/info_icons/warning.png" alt="Warning" title="Warning" /></span> <span class="msg">Unknown Namespace Found</span>
<p>
Unknown namespace "<code><TMPL_VAR NAME="W10_ns" ESCAPE="HTML"></code>"
for <TMPL_VAR NAME="W10_type" ESCAPE="HTML"> document!
</p>
</li>
</TMPL_IF>
<TMPL_IF NAME="W11">
<li class="msg_warn" id="W11"><span class="err_type"><img src="images/info_icons/warning.png" alt="Warning" title="Warning" /></span> <span class="msg">Namespace Found in non-XML Document</span>
<p>
Namespace "<code><TMPL_VAR NAME="W11_rns" ESCAPE="HTML"></code>" found,
but document type is not XML!
</p>
</li>
</TMPL_IF>
<TMPL_IF NAME="W12">
<li class="msg_warn" id="W12"><span class="err_type"><img src="images/info_icons/warning.png" alt="Warning" title="Warning" /></span> <span class="msg">No Namespace Found</span>
<p>
No Namespace was found, but document type requires one to be present!
</p>
</li>
</TMPL_IF>
<TMPL_IF NAME="W13">
<li class="msg_warn" id="W13"><span class="err_type"><img src="images/info_icons/warning.png" alt="Warning" title="Warning" /></span> <span class="msg"><code>DOCTYPE</code> Override in effect!</span>
<p>
The detected DOCTYPE Declaration
"<code><TMPL_VAR NAME="W13_org"></code>" has been
suppressed and the DOCTYPE for
"<code><TMPL_VAR NAME="W13_new" ESCAPE="HTML"></code>" inserted instead,
but even if no errors are shown below the document will not be Valid
until you update it to reflect this new DOCTYPE.
</p>
</li>
</TMPL_IF>
<TMPL_IF NAME="W14">
<li class="msg_warn" id="W14"><span class="err_type"><img src="images/info_icons/warning.png" alt="Warning" title="Warning" /></span> <span class="msg">No <code>DOCTYPE</code> Found!</span>
<p>
Falling back to HTML 4.01 Transitional.
(<a href="docs/users.html#fbd">explain...</a>)
</p>
</li>
</TMPL_IF>
<TMPL_IF NAME="W15">
<li class="msg_warn" id="W15"><span class="err_type"><img src="images/info_icons/warning.png" alt="Warning" title="Warning" /></span> <span class="msg"><code>DOCTYPE</code> Override in effect!</span>
<p>
The DOCTYPE Declaration for "<TMPL_VAR NAME="W15_dtd" ESCAPE="HTML">"
has been inserted at the start of the document, but even if no errors
are shown below the document will not be Valid until you add the new
DOCTYPE Declaration.
</p>
</li>
</TMPL_IF>
<TMPL_IF NAME="W16">
<li class="msg_warn" id="W16"><span class="err_type"><img src="images/info_icons/warning.png" alt="Warning" title="Warning" /></span> <span class="msg">No DOCTYPE Found! Falling Back to
<TMPL_VAR NAME="W16_dtd" ESCAPE="HTML">.</span>
<p>
A DOCTYPE Declaration is mandatory for most current markup languages
and without one it is impossible to reliably validate this document.
I am falling back to "<TMPL_VAR NAME="W16_dtd" ESCAPE="HTML">" and will
attempt to validate the document anyway, but this is very likely to
produce spurious error messages for most non-trivial documents.
</p>
<TMPL_IF NAME="opt_verbose">
<TMPL_INCLUDE NAME="doctype_spiel.tmpl">
<p>
The W3C QA Activity maintains a <a
href="http://www.w3.org/QA/2002/04/valid-dtd-list.html">List of
Valid Doctypes</a> that you can choose from, and the <acronym
title="Web Design Group">WDG</acronym> maintains a document on
"<a href="http://htmlhelp.com/tools/validator/doctype.html">Choosing
a DOCTYPE</a>".
</p>
<TMPL_ELSE>
<p>
So what should I do?
<a href="docs/help.html#faq-doctype">Tell me more...</a>
</p>
</TMPL_IF>
</li>
</TMPL_IF>
<TMPL_IF NAME="W17">
<li class="msg_warn" id="W17"><span class="err_type"><img src="images/info_icons/warning.png" alt="Warning" title="Warning" /></span> <span class="msg">No Character Encoding detected!</span>
<p>
To ensure correct validation, processing, and display, it is important
that the character encoding is properly labeled.
<a href="http://www.w3.org/International/O-charset.html">More
information...</a>
</p>
</li>
</TMPL_IF>
<TMPL_IF NAME="W18">
<li class="msg_warn" id="W18"><span class="err_type"><img src="images/info_icons/warning.png" alt="Warning" title="Warning" /></span> <span class="msg">Character Encoding mismatch!</span>
<p>
The character encoding specified in the HTTP header
(<code><TMPL_VAR NAME="W18_http" ESCAPE="HTML"></code>)
is different from the value in the XML declaration
(<code><TMPL_VAR NAME="W18_xml" ESCAPE="HTML"></code>).
I will use the value from the HTTP header
(<code><TMPL_VAR NAME="W18_use" ESCAPE="HTML"></code>).
</p>
</li>
</TMPL_IF>
<TMPL_IF NAME="W19">
<li class="msg_warn" id="W19"><span class="err_type"><img src="images/info_icons/warning.png" alt="Warning" title="Warning" /></span> <span class="msg">Character Encoding mismatch!</span>
<p>
The character encoding specified in the HTTP header
(<code><TMPL_VAR NAME="W19_http" ESCAPE="HTML"></code>)
is different from the value in the <code><meta></code> element
(<code><TMPL_VAR NAME="W19_meta" ESCAPE="HTML"></code>). I will use the
value from the HTTP header
(<code><TMPL_VAR NAME="W19_use" ESCAPE="HTML"></code>) for this
validation.
</p>
</li>
</TMPL_IF>
<TMPL_IF NAME="W20">
<li class="msg_warn" id="W20"><span class="err_type"><img src="images/info_icons/warning.png" alt="Warning" title="Warning" /></span> <span class="msg">Character Encoding mismatch!</span>
<p>
The character encoding specified in the XML declaration
(<code><TMPL_VAR NAME="W20_xml" ESCAPE="HTML"></code>)
is different from the value in the <code><meta></code> element
(<code><TMPL_VAR NAME="W20_meta" ESCAPE="HTML"></code>). I will use the
value from the XML declaration
(<code><TMPL_VAR NAME="W20_xml" ESCAPE="HTML"></code>) for this
validation.
</p>
</li>
</TMPL_IF>
<TMPL_IF NAME="W21">
<li class="msg_warn" id="W21"><span class="err_type"><img src="images/info_icons/warning.png" alt="Warning" title="Warning" /></span> <span class="msg">Byte-Order Mark found in UTF-8 File.</span>
<p>
The Unicode Byte-Order Mark (BOM) in UTF-8 encoded files is known to
cause problems for some text editors and older browsers. You may want
to consider avoiding its use until it is better supported.
</p>
</li>
</TMPL_IF>
<TMPL_IF NAME="W@@">
<li class="msg_warn" id="W@@">
<p>
</p>
</li>
</TMPL_IF>
</ol><!-- End of "warnings". -->
|