@@ -6,9 +6,7 @@ area at github][3]. The following are instructions on how to use it to validate
6
6
documents.
7
7
8
8
[ 1 ] : http://about.validator.nu/
9
-
10
9
[ 2 ] : https://github.com/validator/validator.github.io/releases
11
-
12
10
[ 3 ] : https://github.com/validator/validator.github.io/
13
11
14
12
## Command-line usage
@@ -17,8 +15,7 @@ You can use the `vnu.jar` validator as an executable for command-line validation
17
15
of HTML documents by invoking it like this:
18
16
19
17
java -jar vnu.jar [--html] [--entities] [--schema URL]
20
-
21
- [--format gnu|xml|json|text] [--verbose] [--version] FILES
18
+ [--format gnu|xml|json|text] [--verbose] [--version] FILES
22
19
23
20
To validate one or more documents from the command line:
24
21
@@ -40,46 +37,32 @@ executable provides the following options:
40
37
#### --entities
41
38
42
39
Specifies that the XML parser must not load remote/external entities (such
43
-
44
- as DTDs) from the Internet.
45
-
46
- default: [unset; the XML parser will attempt to load external entities]
40
+ as DTDs) from the Internet. default: [unset; the XML parser will attempt to
41
+ load external entities]
47
42
48
43
#### --format format
49
44
50
- Specifies the output format for validation results.
51
-
52
- default: "gnu"
53
-
54
- possible values: "gnu", "xml", "json", "text"
55
-
56
- see also:
57
- [ http://wiki.whatwg.org/wiki/Validator.nu_Common_Input_Parameters#out ] [ 4 ]
45
+ Specifies the output format for validation results. default: "gnu" possible
46
+ values: "gnu", "xml", "json", "text" see also:
47
+ [http://wiki.whatwg.org/wiki/Validator.nu_Common_Input_Parameters#out][4]
58
48
59
49
[ 4 ] : http://wiki.whatwg.org/wiki/Validator.nu_Common_Input_Parameters#out
60
50
61
51
#### --html
62
52
63
53
Specifies that all documents must be parsed by the HTML parser as text/html
64
-
65
- (otherwise, *.xhtml documents are parsed by the XML parser).
66
-
67
- default: [unset; *.xhtml documents are parsed by the XML parser]
54
+ (otherwise, *.xhtml documents are parsed by the XML parser). default:
55
+ [unset; *.xhtml documents are parsed by the XML parser]
68
56
69
57
#### --schema URL
70
58
71
59
Specifies a URL for a known http://s.validator.nu/* schema to use for
72
-
73
- document validation.
74
-
75
- default: http://s.validator.nu/html5-all.rnc
60
+ document validation. default: http://s.validator.nu/html5-all.rnc
76
61
77
62
#### --verbose
78
63
79
- Specifies that the validator output should be "verbose". Currently this
80
-
81
- just means that the names of files being validated are written to stdout.
82
-
64
+ Specifies that the validator output should be "verbose". Currently this just
65
+ means that the names of files being validated are written to stdout.
83
66
default: [unset; output is not verbose]
84
67
85
68
#### --version
@@ -92,9 +75,7 @@ The `vnu.jar` validator provides a way for you to validate HTML documents over
92
75
the Web, in a Web browser, as an HTTP service—just as with
93
76
[ http://html5.validator.nu/ ] [ 5 ] and [ http://validator.w3.org/nu/ ] [ 6 ] .
94
77
95
- [ 5 ] : http://html5.validator.nu/
96
-
97
- [ 6 ] : http://validator.w3.org/nu/
78
+ [ 5] : http://html5.validator.nu/ [ 6] : http://validator.w3.org/nu/
98
79
99
80
To run the validator as an HTTP service, open a new terminal window and invoke
100
81
` vnu.jar ` like this:
@@ -119,7 +100,7 @@ locally-running instance of the HTTP service for validation. To validate
119
100
documents in that way, do this:
120
101
121
102
1 . Open a new terminal window and start up the validator as an HTTP service,
122
- as described in the Web-based usage section.
103
+ as described in the Web-based usage section.
123
104
124
105
2 . Open a second new terminal window and invoke ` vnu.jar ` like this:
125
106
@@ -136,8 +117,7 @@ error-level ones by setting the value of the `nu.validator.client.level` system
136
117
property to ` error ` , like this:
137
118
138
119
java -Dnu.validator.client.level=error\
139
-
140
- -cp vnu.jar nu.validator.client.HttpClient FILE.html...
120
+ -cp vnu.jar nu.validator.client.HttpClient FILE.html...
141
121
142
122
Most of the properties listed below map to the validator.nu common input
143
123
parameters documented at
@@ -148,74 +128,51 @@ parameters documented at
148
128
#### nu.validator.client.host
149
129
150
130
Specifies the hostname of the validator for the client to connect to.
151
-
152
131
default: "127.0.0.1"
153
132
154
133
#### nu.validator.client.port
155
134
156
135
Specifies the hostname of the validator for the client to connect to.
157
-
158
- default: "8888"
159
-
160
- example: java -Dnu.validator.client.port=8080 -jar vnu.jar FILE.html
136
+ default: "8888" example: java -Dnu.validator.client.port=8080 -jar vnu.jar
137
+ FILE.html
161
138
162
139
#### nu.validator.client.level
163
140
164
- Specifies the severity level of validation messages to report; to
165
-
166
- suppress warning-level messages, and only show error-level ones, set
167
-
168
- this property to "error".
169
-
170
- default: [unset]
171
-
172
- possible values: "error"
173
-
174
- example: java -Dnu.validator.client.level=error -jar vnu.jar FILE.html
141
+ Specifies the severity level of validation messages to report; to suppress
142
+ warning-level messages, and only show error-level ones, set this property to
143
+ "error". default: [unset] possible values: "error" example: java
144
+ -Dnu.validator.client.level=error -jar vnu.jar FILE.html
175
145
176
146
#### nu.validator.client.parser
177
147
178
- Specifies which parser to use.
179
-
180
- default: "html"; or, for *.xhtml input files, "xml"
181
-
182
- possible values: see
183
- [ http://wiki.whatwg.org/wiki/Validator.nu_Common_Input_Parameters#parser ] [ 10 ]
148
+ Specifies which parser to use. default: "html"; or, for *.xhtml input
149
+ files, "xml" possible values: see
150
+ [http://wiki.whatwg.org/wiki/Validator.nu_Common_Input_Parameters#parser][10]
184
151
185
152
[ 10 ] : http://wiki.whatwg.org/wiki/Validator.nu_Common_Input_Parameters#parser
186
153
187
154
#### nu.validator.client.charset
188
155
189
- Specifies the encoding of the input document.
190
-
191
- default: [unset]
156
+ Specifies the encoding of the input document. default: [unset]
192
157
193
158
#### nu.validator.client.content-type
194
159
195
- Specifies the content-type of the input document.
196
-
197
- default: "text/html"; or, for *.xhtml files, "application/xhtml+xml"
160
+ Specifies the content-type of the input document. default: "text/html"; or,
161
+ for *.xhtml files, "application/xhtml+xml"
198
162
199
163
#### nu.validator.client.out
200
164
201
- Specifies the output format for validation messages.
202
-
203
- default: "gnu"
204
-
165
+ Specifies the output format for validation messages. default: "gnu"
205
166
possible values: see
206
- [ http://wiki.whatwg.org/wiki/Validator.nu_Common_Input_Parameters#out ] [ 11 ]
167
+ [http://wiki.whatwg.org/wiki/Validator.nu_Common_Input_Parameters#out][11]
207
168
208
169
[ 11 ] : http://wiki.whatwg.org/wiki/Validator.nu_Common_Input_Parameters#out
209
170
210
171
#### nu.validator.client.asciiquotes
211
172
212
- Specifies whether ASCII quotation marks are substituted for Unicode
213
-
214
- smart quotation marks in validation messages.
215
-
216
- default: "yes"
217
-
218
- possible values: "yes" or "no"
173
+ Specifies whether ASCII quotation marks are substituted for Unicode smart
174
+ quotation marks in validation messages. default: "yes" possible values:
175
+ "yes" or "no"
219
176
220
177
For more information... sources bugz etc.
221
178
0 commit comments