~ubuntu-branches/ubuntu/wily/libxml2/wily-proposed

« back to all changes in this revision

Viewing changes to doc/xmllint.1

  • Committer: Package Import Robot
  • Author(s): Marc Deslauriers
  • Date: 2013-07-11 09:31:50 UTC
  • mfrom: (43.2.4 sid)
  • Revision ID: package-import@ubuntu.com-20130711093150-t3vcnrpfqepqt0mp
Tags: 2.9.1+dfsg1-2ubuntu1
* Merged from Debian unstable. Remaining changes:
  - Fix python multi-arch includes issues. 
  - Allow the package to cross-build.
  - Set PYTHON_LIBS for cross builds.
  - Remove explicit build dependency on binutils.
  - Configure the udeb --without-python.
* Dropped patches:
  - CVE-2013-0338.patch: upstream
  - CVE-2013-1969.patch: upstream

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
.\" ** You probably do not want to edit this file directly **
2
 
.\" It was generated using the DocBook XSL Stylesheets (version 1.69.1).
3
 
.\" Instead of manually editing it, you probably should edit the DocBook XML
4
 
.\" source for it and then use the DocBook XSL Stylesheets to regenerate it.
5
 
.TH "XMLLINT" "1" "$Date$" "libxml2" ""
 
1
'\" t
 
2
.\"     Title: xmllint
 
3
.\"    Author: John Fleck <jfleck@inkstain.net>
 
4
.\" Generator: DocBook XSL Stylesheets v1.76.1 <http://docbook.sf.net/>
 
5
.\"      Date: $Date$
 
6
.\"    Manual: xmllint Manual
 
7
.\"    Source: libxml2
 
8
.\"  Language: English
 
9
.\"
 
10
.TH "XMLLINT" "1" "$Date$" "libxml2" "xmllint Manual"
 
11
.\" -----------------------------------------------------------------
 
12
.\" * Define some portability stuff
 
13
.\" -----------------------------------------------------------------
 
14
.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
 
15
.\" http://bugs.debian.org/507673
 
16
.\" http://lists.gnu.org/archive/html/groff/2009-02/msg00013.html
 
17
.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
 
18
.ie \n(.g .ds Aq \(aq
 
19
.el       .ds Aq '
 
20
.\" -----------------------------------------------------------------
 
21
.\" * set default formatting
 
22
.\" -----------------------------------------------------------------
6
23
.\" disable hyphenation
7
24
.nh
8
25
.\" disable justification (adjust text to left margin only)
9
26
.ad l
 
27
.\" -----------------------------------------------------------------
 
28
.\" * MAIN CONTENT STARTS HERE *
 
29
.\" -----------------------------------------------------------------
10
30
.SH "NAME"
11
31
xmllint \- command line XML tool
12
32
.SH "SYNOPSIS"
13
 
.HP 8
14
 
\fBxmllint\fR [\fB\-\-version\fR \fB\-\-debug\fR \fB\-\-shell\fR \fB\-\-debugent\fR \fB\-\-copy\fR \fB\-\-recover\fR \fB\-\-noent\fR \fB\-\-noout\fR \fB\-\-nonet\fR \fB\-\-path\ "\fR\fB\fIPATH(S)\fR\fR\fB"\fR \fB\-\-load\-trace\fR \fB\-\-htmlout\fR \fB\-\-nowrap\fR \fB\-\-valid\fR \fB\-\-postvalid\fR \fB\-\-dtdvalid\ \fR\fB\fIURL\fR\fR \fB\-\-dtdvalidfpi\ \fR\fB\fIFPI\fR\fR \fB\-\-timing\fR \fB\-\-output\ \fR\fB\fIFILE\fR\fR \fB\-\-repeat\fR \fB\-\-insert\fR \fB\-\-compress\fR \fB\-\-html\fR \fB\-\-xmlout\fR \fB\-\-push\fR \fB\-\-memory\fR \fB\-\-maxmem\ \fR\fB\fINBBYTES\fR\fR \fB\-\-nowarning\fR \fB\-\-noblanks\fR \fB\-\-nocdata\fR \fB\-\-format\fR \fB\-\-encode\ \fR\fB\fIENCODING\fR\fR \fB\-\-dropdtd\fR \fB\-\-nsclean\fR \fB\-\-testIO\fR \fB\-\-catalogs\fR \fB\-\-nocatalogs\fR \fB\-\-auto\fR \fB\-\-xinclude\fR \fB\-\-noxincludenode\fR \fB\-\-loaddtd\fR \fB\-\-dtdattr\fR \fB\-\-stream\fR \fB\-\-walker\fR \fB\-\-pattern\ \fR\fB\fIPATTERNVALUE\fR\fR \fB\-\-chkregister\fR \fB\-\-relaxng\ \fR\fB\fISCHEMA\fR\fR \fB\-\-schema\ \fR\fB\fISCHEMA\fR\fR \fB\-\-c14n\fR] {\fIXML\-FILE(S)\fR... \-}
15
 
.HP 8
 
33
.HP \w'\fBxmllint\fR\ 'u
 
34
\fBxmllint\fR [\fB\-\-version\fR | \fB\-\-debug\fR | \fB\-\-shell\fR | \fB\-\-xpath\ "\fR\fB\fIXPath_expression\fR\fR\fB"\fR | \fB\-\-debugent\fR | \fB\-\-copy\fR | \fB\-\-recover\fR | \fB\-\-noent\fR | \fB\-\-noout\fR | \fB\-\-nonet\fR | \fB\-\-path\ "\fR\fB\fIPATH(S)\fR\fR\fB"\fR | \fB\-\-load\-trace\fR | \fB\-\-htmlout\fR | \fB\-\-nowrap\fR | \fB\-\-valid\fR | \fB\-\-postvalid\fR | \fB\-\-dtdvalid\ \fR\fB\fIURL\fR\fR | \fB\-\-dtdvalidfpi\ \fR\fB\fIFPI\fR\fR | \fB\-\-timing\fR | \fB\-\-output\ \fR\fB\fIFILE\fR\fR | \fB\-\-repeat\fR | \fB\-\-insert\fR | \fB\-\-compress\fR | \fB\-\-html\fR | \fB\-\-xmlout\fR | \fB\-\-push\fR | \fB\-\-memory\fR | \fB\-\-maxmem\ \fR\fB\fINBBYTES\fR\fR | \fB\-\-nowarning\fR | \fB\-\-noblanks\fR | \fB\-\-nocdata\fR | \fB\-\-format\fR | \fB\-\-encode\ \fR\fB\fIENCODING\fR\fR | \fB\-\-dropdtd\fR | \fB\-\-nsclean\fR | \fB\-\-testIO\fR | \fB\-\-catalogs\fR | \fB\-\-nocatalogs\fR | \fB\-\-auto\fR | \fB\-\-xinclude\fR | \fB\-\-noxincludenode\fR | \fB\-\-loaddtd\fR | \fB\-\-dtdattr\fR | \fB\-\-stream\fR | \fB\-\-walker\fR | \fB\-\-pattern\ \fR\fB\fIPATTERNVALUE\fR\fR | \fB\-\-chkregister\fR | \fB\-\-relaxng\ \fR\fB\fISCHEMA\fR\fR | \fB\-\-schema\ \fR\fB\fISCHEMA\fR\fR | \fB\-\-c14n\fR] {\fIXML\-FILE(S)\fR... | \-}
 
35
.HP \w'\fBxmllint\fR\ 'u
16
36
\fBxmllint\fR \fB\-\-help\fR
17
37
.SH "DESCRIPTION"
18
38
.PP
24
44
\fIXML\-FILE\fR
25
45
(or the standard input if the filename provided is
26
46
\fB\-\fR
27
 
). It prints various types of output, depending upon the options selected. It is useful for detecting errors both in
 
47
)\&. It prints various types of output, depending upon the options selected\&. It is useful for detecting errors both in
28
48
XML
29
49
code and in the
30
50
XML
31
 
parser itself.
 
51
parser itself\&.
32
52
.PP
33
53
\fBxmllint\fR
34
54
is included in
35
 
\fBlibxml\fR(3).
 
55
\fBlibxml\fR(3)\&.
36
56
.SH "OPTIONS"
37
57
.PP
 
58
 
38
59
\fBxmllint\fR
39
60
accepts the following options (in alphabetical order):
40
 
.TP
 
61
.PP
41
62
\fB\-\-auto\fR
42
 
Generate a small document for testing purposes.
43
 
.TP
 
63
.RS 4
 
64
Generate a small document for testing purposes\&.
 
65
.RE
 
66
.PP
44
67
\fB\-\-catalogs\fR
 
68
.RS 4
45
69
Use the
46
70
SGML
47
71
catalog(s) from
48
 
\fBSGML_CATALOG_FILES\fR. Otherwise
 
72
\fBSGML_CATALOG_FILES\fR\&. Otherwise
49
73
XML
50
74
catalogs starting from
51
 
\fI/etc/xml/catalog\fR
52
 
are used by default.
53
 
.TP
 
75
/etc/xml/catalog
 
76
are used by default\&.
 
77
.RE
 
78
.PP
54
79
\fB\-\-chkregister\fR
55
 
Turn on node registration. Useful for developers testing
 
80
.RS 4
 
81
Turn on node registration\&. Useful for developers testing
56
82
\fBlibxml\fR(3)
57
 
node tracking code.
58
 
.TP
 
83
node tracking code\&.
 
84
.RE
 
85
.PP
59
86
\fB\-\-compress\fR
 
87
.RS 4
60
88
Turn on
61
89
\fBgzip\fR(1)
62
 
compression of output.
63
 
.TP
 
90
compression of output\&.
 
91
.RE
 
92
.PP
64
93
\fB\-\-copy\fR
65
 
Test the internal copy implementation.
66
 
.TP
 
94
.RS 4
 
95
Test the internal copy implementation\&.
 
96
.RE
 
97
.PP
67
98
\fB\-\-c14n\fR
 
99
.RS 4
68
100
Use the W3C
69
101
XML
70
102
Canonicalisation (C14N) to serialize the result of parsing to
71
 
\fIstdout\fR. It keeps comments in the result.
72
 
.TP
 
103
stdout\&. It keeps comments in the result\&.
 
104
.RE
 
105
.PP
73
106
\fB\-\-dtdvalid \fR\fB\fIURL\fR\fR
 
107
.RS 4
74
108
Use the
75
109
DTD
76
110
specified by an
77
111
\fIURL\fR
78
 
for validation.
79
 
.TP
 
112
for validation\&.
 
113
.RE
 
114
.PP
80
115
\fB\-\-dtdvalidfpi \fR\fB\fIFPI\fR\fR
 
116
.RS 4
81
117
Use the
82
118
DTD
83
119
specified by a Formal Public Identifier
84
120
\fIFPI\fR
85
 
for validation, note that this will require a catalog exporting that Formal Public Identifier to work.
86
 
.TP
 
121
for validation, note that this will require a catalog exporting that Formal Public Identifier to work\&.
 
122
.RE
 
123
.PP
87
124
\fB\-\-debug\fR
88
 
Parse a file and output an annotated tree of the in\-memory version of the document.
89
 
.TP
 
125
.RS 4
 
126
Parse a file and output an annotated tree of the in\-memory version of the document\&.
 
127
.RE
 
128
.PP
90
129
\fB\-\-debugent\fR
91
 
Debug the entities defined in the document.
92
 
.TP
 
130
.RS 4
 
131
Debug the entities defined in the document\&.
 
132
.RE
 
133
.PP
93
134
\fB\-\-dropdtd\fR
 
135
.RS 4
94
136
Remove
95
137
DTD
96
 
from output.
97
 
.TP
 
138
from output\&.
 
139
.RE
 
140
.PP
98
141
\fB\-\-dtdattr\fR
 
142
.RS 4
99
143
Fetch external
100
144
DTD
101
 
and populate the tree with inherited attributes.
102
 
.TP
 
145
and populate the tree with inherited attributes\&.
 
146
.RE
 
147
.PP
103
148
\fB\-\-encode \fR\fB\fIENCODING\fR\fR
104
 
Output in the given encoding.
105
 
.TP
 
149
.RS 4
 
150
Output in the given encoding\&.
 
151
.RE
 
152
.PP
106
153
\fB\-\-format\fR
107
 
Reformat and reindent the output. The
 
154
.RS 4
 
155
Reformat and reindent the output\&. The
108
156
\fBXMLLINT_INDENT\fR
109
 
environment variable controls the indentation. The default value is two spaces " ").
110
 
.TP
 
157
environment variable controls the indentation\&. The default value is two spaces " ")\&.
 
158
.RE
 
159
.PP
111
160
\fB\-\-help\fR
 
161
.RS 4
112
162
Print out a short usage summary for
113
 
\fBxmllint\fR.
114
 
.TP
 
163
\fBxmllint\fR\&.
 
164
.RE
 
165
.PP
115
166
\fB\-\-html\fR
 
167
.RS 4
116
168
Use the
117
169
HTML
118
 
parser.
119
 
.TP
 
170
parser\&.
 
171
.RE
 
172
.PP
120
173
\fB\-\-htmlout\fR
 
174
.RS 4
121
175
Output results as an
122
176
HTML
123
 
file. This causes
 
177
file\&. This causes
124
178
\fBxmllint\fR
125
179
to output the necessary
126
180
HTML
127
 
tags surrounding the result tree output so the results can be displayed/viewed in a browser.
128
 
.TP
 
181
tags surrounding the result tree output so the results can be displayed/viewed in a browser\&.
 
182
.RE
 
183
.PP
129
184
\fB\-\-insert\fR
130
 
Test for valid insertions.
131
 
.TP
 
185
.RS 4
 
186
Test for valid insertions\&.
 
187
.RE
 
188
.PP
132
189
\fB\-\-loaddtd\fR
 
190
.RS 4
133
191
Fetch an external
134
 
DTD.
135
 
.TP
 
192
DTD\&.
 
193
.RE
 
194
.PP
136
195
\fB\-\-load\-trace\fR
 
196
.RS 4
137
197
Display all the documents loaded during the processing to
138
 
\fIstderr\fR.
139
 
.TP
 
198
stderr\&.
 
199
.RE
 
200
.PP
140
201
\fB\-\-maxmem \fR\fB\fINNBYTES\fR\fR
141
 
Test the parser memory support.
 
202
.RS 4
 
203
Test the parser memory support\&.
142
204
\fINNBYTES\fR
143
 
is the maximum number of bytes the library is allowed to allocate. This can also be used to make sure batch processing of
 
205
is the maximum number of bytes the library is allowed to allocate\&. This can also be used to make sure batch processing of
144
206
XML
145
 
files will not exhaust the virtual memory of the server running them.
146
 
.TP
 
207
files will not exhaust the virtual memory of the server running them\&.
 
208
.RE
 
209
.PP
147
210
\fB\-\-memory\fR
148
 
Parse from memory.
149
 
.TP
 
211
.RS 4
 
212
Parse from memory\&.
 
213
.RE
 
214
.PP
150
215
\fB\-\-noblanks\fR
151
 
Drop ignorable blank spaces.
152
 
.TP
 
216
.RS 4
 
217
Drop ignorable blank spaces\&.
 
218
.RE
 
219
.PP
153
220
\fB\-\-nocatalogs\fR
154
 
Do not use any catalogs.
155
 
.TP
 
221
.RS 4
 
222
Do not use any catalogs\&.
 
223
.RE
 
224
.PP
156
225
\fB\-\-nocdata\fR
157
 
Substitute CDATA section by equivalent text nodes.
158
 
.TP
 
226
.RS 4
 
227
Substitute CDATA section by equivalent text nodes\&.
 
228
.RE
 
229
.PP
159
230
\fB\-\-noent\fR
160
 
Substitute entity values for entity references. By default,
 
231
.RS 4
 
232
Substitute entity values for entity references\&. By default,
161
233
\fBxmllint\fR
162
 
leaves entity references in place.
163
 
.TP
 
234
leaves entity references in place\&.
 
235
.RE
 
236
.PP
164
237
\fB\-\-nonet\fR
 
238
.RS 4
165
239
Do not use the Internet to fetch
166
 
DTDs or entities.
167
 
.TP
 
240
DTDs or entities\&.
 
241
.RE
 
242
.PP
168
243
\fB\-\-noout\fR
169
 
Suppress output. By default,
 
244
.RS 4
 
245
Suppress output\&. By default,
170
246
\fBxmllint\fR
171
 
outputs the result tree.
172
 
.TP
 
247
outputs the result tree\&.
 
248
.RE
 
249
.PP
173
250
\fB\-\-nowarning\fR
174
 
Do not emit warnings from the parser and/or validator.
175
 
.TP
 
251
.RS 4
 
252
Do not emit warnings from the parser and/or validator\&.
 
253
.RE
 
254
.PP
176
255
\fB\-\-nowrap\fR
 
256
.RS 4
177
257
Do not output
178
258
HTML
179
 
doc wrapper.
180
 
.TP
 
259
doc wrapper\&.
 
260
.RE
 
261
.PP
181
262
\fB\-\-noxincludenode\fR
182
 
Do XInclude processing but do not generate XInclude start and end nodes.
183
 
.TP
 
263
.RS 4
 
264
Do XInclude processing but do not generate XInclude start and end nodes\&.
 
265
.RE
 
266
.PP
184
267
\fB\-\-nsclean\fR
185
 
Remove redundant namespace declarations.
186
 
.TP
 
268
.RS 4
 
269
Remove redundant namespace declarations\&.
 
270
.RE
 
271
.PP
187
272
\fB\-\-output \fR\fB\fIFILE\fR\fR
 
273
.RS 4
188
274
Define a file path where
189
275
\fBxmllint\fR
190
 
will save the result of parsing. Usually the programs build a tree and save it on
191
 
\fIstdout\fR, with this option the result
 
276
will save the result of parsing\&. Usually the programs build a tree and save it on
 
277
stdout, with this option the result
192
278
XML
193
 
instance will be saved onto a file.
194
 
.TP
 
279
instance will be saved onto a file\&.
 
280
.RE
 
281
.PP
195
282
\fB\-\-path "\fR\fB\fIPATH(S)\fR\fR\fB"\fR
 
283
.RS 4
196
284
Use the (space\- or colon\-separated) list of filesystem paths specified by
197
285
\fIPATHS\fR
198
286
to load
199
 
DTDs or entities. Enclose space\-separated lists by quotation marks.
200
 
.TP
 
287
DTDs or entities\&. Enclose space\-separated lists by quotation marks\&.
 
288
.RE
 
289
.PP
201
290
\fB\-\-pattern \fR\fB\fIPATTERNVALUE\fR\fR
202
 
Used to exercise the pattern recognition engine, which can be used with the reader interface to the parser. It allows to select some nodes in the document based on an XPath (subset) expression. Used for debugging.
203
 
.TP
 
291
.RS 4
 
292
Used to exercise the pattern recognition engine, which can be used with the reader interface to the parser\&. It allows to select some nodes in the document based on an XPath (subset) expression\&. Used for debugging\&.
 
293
.RE
 
294
.PP
204
295
\fB\-\-postvalid\fR
205
 
Validate after parsing has completed.
206
 
.TP
 
296
.RS 4
 
297
Validate after parsing has completed\&.
 
298
.RE
 
299
.PP
207
300
\fB\-\-push\fR
208
 
Use the push mode of the parser.
209
 
.TP
 
301
.RS 4
 
302
Use the push mode of the parser\&.
 
303
.RE
 
304
.PP
210
305
\fB\-\-recover\fR
211
 
Output any parsable portions of an invalid document.
212
 
.TP
 
306
.RS 4
 
307
Output any parsable portions of an invalid document\&.
 
308
.RE
 
309
.PP
213
310
\fB\-\-relaxng \fR\fB\fISCHEMA\fR\fR
 
311
.RS 4
214
312
Use RelaxNG file named
215
313
\fISCHEMA\fR
216
 
for validation.
217
 
.TP
 
314
for validation\&.
 
315
.RE
 
316
.PP
218
317
\fB\-\-repeat\fR
219
 
Repeat 100 times, for timing or profiling.
220
 
.TP
 
318
.RS 4
 
319
Repeat 100 times, for timing or profiling\&.
 
320
.RE
 
321
.PP
221
322
\fB\-\-schema \fR\fB\fISCHEMA\fR\fR
 
323
.RS 4
222
324
Use a W3C
223
325
XML
224
326
Schema file named
225
327
\fISCHEMA\fR
226
 
for validation.
227
 
.TP
 
328
for validation\&.
 
329
.RE
 
330
.PP
228
331
\fB\-\-shell\fR
229
 
Run a navigating shell. Details on available commands in shell mode are below (see
230
 
the section called \(lqSHELL COMMANDS\(rq).
231
 
.TP
 
332
.RS 4
 
333
Run a navigating shell\&. Details on available commands in shell mode are below (see
 
334
the section called \(lqSHELL COMMANDS\(rq)\&.
 
335
.RE
 
336
.PP
 
337
\fB\-\-xpath "\fR\fB\fIXPath_expression\fR\fR\fB"\fR
 
338
.RS 4
 
339
Run an XPath expression given as argument and print the result\&. In case of a nodeset result, each node in the node set is serialized in full in the output\&. In case of an empty node set the "XPath set is empty" result will be shown and an error exit code will be returned\&.
 
340
.RE
 
341
.PP
232
342
\fB\-\-stream\fR
 
343
.RS 4
233
344
Use streaming
234
345
API
235
346
\- useful when used in combination with
236
347
\fB\-\-relaxng\fR
237
348
or
238
349
\fB\-\-valid\fR
239
 
options for validation of files that are too large to be held in memory.
240
 
.TP
 
350
options for validation of files that are too large to be held in memory\&.
 
351
.RE
 
352
.PP
241
353
\fB\-\-testIO\fR
242
 
Test user input/output support.
243
 
.TP
 
354
.RS 4
 
355
Test user input/output support\&.
 
356
.RE
 
357
.PP
244
358
\fB\-\-timing\fR
 
359
.RS 4
245
360
Output information about the time it takes
246
361
\fBxmllint\fR
247
 
to perform the various steps.
248
 
.TP
 
362
to perform the various steps\&.
 
363
.RE
 
364
.PP
249
365
\fB\-\-valid\fR
250
 
Determine if the document is a valid instance of the included Document Type Definition (DTD). A
 
366
.RS 4
 
367
Determine if the document is a valid instance of the included Document Type Definition (DTD)\&. A
251
368
DTD
252
369
to be validated against also can be specified at the command line using the
253
370
\fB\-\-dtdvalid\fR
254
 
option. By default,
 
371
option\&. By default,
255
372
\fBxmllint\fR
256
 
also checks to determine if the document is well\-formed.
257
 
.TP
 
373
also checks to determine if the document is well\-formed\&.
 
374
.RE
 
375
.PP
258
376
\fB\-\-version\fR
 
377
.RS 4
259
378
Display the version of
260
379
\fBlibxml\fR(3)
261
 
used.
262
 
.TP
 
380
used\&.
 
381
.RE
 
382
.PP
263
383
\fB\-\-walker\fR
 
384
.RS 4
264
385
Test the walker module, which is a reader interface but for a document tree, instead of using the reader
265
386
API
266
 
on an unparsed document it works on an existing in\-memory tree. Used for debugging.
267
 
.TP
 
387
on an unparsed document it works on an existing in\-memory tree\&. Used for debugging\&.
 
388
.RE
 
389
.PP
268
390
\fB\-\-xinclude\fR
269
 
Do XInclude processing.
270
 
.TP
 
391
.RS 4
 
392
Do XInclude processing\&.
 
393
.RE
 
394
.PP
271
395
\fB\-\-xmlout\fR
 
396
.RS 4
272
397
Used in conjunction with
273
 
\fB\-\-html\fR. Usually when
 
398
\fB\-\-html\fR\&. Usually when
274
399
HTML
275
400
is parsed the document is saved with the
276
401
HTML
277
 
serializer. But with this option the resulting document is saved with the
 
402
serializer\&. But with this option the resulting document is saved with the
278
403
XML
279
 
serializer. This is primarily used to generate
 
404
serializer\&. This is primarily used to generate
280
405
XHTML
281
406
from
282
407
HTML
283
 
input.
 
408
input\&.
 
409
.RE
284
410
.SH "SHELL COMMANDS"
285
411
.PP
 
412
 
286
413
\fBxmllint\fR
287
414
offers an interactive shell mode invoked with the
288
415
\fB\-\-shell\fR
289
 
command. Available commands in shell mode include (in alphabetical order):
290
 
.TP
 
416
command\&. Available commands in shell mode include (in alphabetical order):
 
417
.PP
291
418
\fBbase\fR
 
419
.RS 4
292
420
Display
293
421
XML
294
 
base of the node.
295
 
.TP
 
422
base of the node\&.
 
423
.RE
 
424
.PP
296
425
\fBbye\fR
297
 
Leave the shell.
298
 
.TP
 
426
.RS 4
 
427
Leave the shell\&.
 
428
.RE
 
429
.PP
299
430
\fBcat \fR\fB\fINODE\fR\fR
300
 
Display the given node or the current one.
301
 
.TP
 
431
.RS 4
 
432
Display the given node or the current one\&.
 
433
.RE
 
434
.PP
302
435
\fBcd \fR\fB\fIPATH\fR\fR
303
 
Change the current node to the given path (if unique) or root if no argument is given.
304
 
.TP
 
436
.RS 4
 
437
Change the current node to the given path (if unique) or root if no argument is given\&.
 
438
.RE
 
439
.PP
305
440
\fBdir \fR\fB\fIPATH\fR\fR
306
 
Dumps information about the node (namespace, attributes, content).
307
 
.TP
 
441
.RS 4
 
442
Dumps information about the node (namespace, attributes, content)\&.
 
443
.RE
 
444
.PP
308
445
\fBdu \fR\fB\fIPATH\fR\fR
309
 
Show the structure of the subtree under the given path or the current node.
310
 
.TP
 
446
.RS 4
 
447
Show the structure of the subtree under the given path or the current node\&.
 
448
.RE
 
449
.PP
311
450
\fBexit\fR
312
 
Leave the shell.
313
 
.TP
 
451
.RS 4
 
452
Leave the shell\&.
 
453
.RE
 
454
.PP
314
455
\fBhelp\fR
315
 
Show this help.
316
 
.TP
 
456
.RS 4
 
457
Show this help\&.
 
458
.RE
 
459
.PP
317
460
\fBfree\fR
318
 
Display memory usage.
319
 
.TP
 
461
.RS 4
 
462
Display memory usage\&.
 
463
.RE
 
464
.PP
320
465
\fBload \fR\fB\fIFILENAME\fR\fR
321
 
Load a new document with the given filename.
322
 
.TP
 
466
.RS 4
 
467
Load a new document with the given filename\&.
 
468
.RE
 
469
.PP
323
470
\fBls \fR\fB\fIPATH\fR\fR
324
 
List contents of the given path or the current directory.
325
 
.TP
 
471
.RS 4
 
472
List contents of the given path or the current directory\&.
 
473
.RE
 
474
.PP
326
475
\fBpwd\fR
327
 
Display the path to the current node.
328
 
.TP
 
476
.RS 4
 
477
Display the path to the current node\&.
 
478
.RE
 
479
.PP
329
480
\fBquit\fR
330
 
Leave the shell.
331
 
.TP
 
481
.RS 4
 
482
Leave the shell\&.
 
483
.RE
 
484
.PP
332
485
\fBsave \fR\fB\fIFILENAME\fR\fR
333
 
Save the current document to the given filename or to the original name.
334
 
.TP
 
486
.RS 4
 
487
Save the current document to the given filename or to the original name\&.
 
488
.RE
 
489
.PP
335
490
\fBvalidate\fR
336
 
Check the document for errors.
337
 
.TP
 
491
.RS 4
 
492
Check the document for errors\&.
 
493
.RE
 
494
.PP
338
495
\fBwrite \fR\fB\fIFILENAME\fR\fR
339
 
Write the current node to the given filename.
 
496
.RS 4
 
497
Write the current node to the given filename\&.
 
498
.RE
340
499
.SH "ENVIRONMENT"
341
 
.TP
 
500
.PP
342
501
\fBSGML_CATALOG_FILES\fR
 
502
.RS 4
343
503
SGML
344
 
catalog behavior can be changed by redirecting queries to the user's own set of catalogs. This can be done by setting the
 
504
catalog behavior can be changed by redirecting queries to the user\*(Aqs own set of catalogs\&. This can be done by setting the
345
505
\fBSGML_CATALOG_FILES\fR
346
 
environment variable to a list of catalogs. An empty one should deactivate loading the default
347
 
\fI/etc/sgml/catalog\fR
348
 
catalog.
349
 
.TP
 
506
environment variable to a list of catalogs\&. An empty one should deactivate loading the default
 
507
/etc/sgml/catalog
 
508
catalog\&.
 
509
.RE
 
510
.PP
350
511
\fBXML_CATALOG_FILES\fR
 
512
.RS 4
351
513
XML
352
 
catalog behavior can be changed by redirecting queries to the user's own set of catalogs. This can be done by setting the
 
514
catalog behavior can be changed by redirecting queries to the user\*(Aqs own set of catalogs\&. This can be done by setting the
353
515
\fBXML_CATALOG_FILES\fR
354
 
environment variable to a list of catalogs. An empty one should deactivate loading the default
355
 
\fI/etc/xml/catalog\fR
356
 
catalog.
357
 
.TP
 
516
environment variable to a list of catalogs\&. An empty one should deactivate loading the default
 
517
/etc/xml/catalog
 
518
catalog\&.
 
519
.RE
 
520
.PP
358
521
\fBXML_DEBUG_CATALOG\fR
 
522
.RS 4
359
523
Setting the environment variable
360
524
\fBXML_DEBUG_CATALOG\fR
361
525
to
362
526
\fInon\-zero\fR
363
527
using the
364
528
\fBexport\fR
365
 
command outputs debugging information related to catalog operations.
366
 
.TP
 
529
command outputs debugging information related to catalog operations\&.
 
530
.RE
 
531
.PP
367
532
\fBXMLLINT_INDENT\fR
 
533
.RS 4
368
534
Setting the environment variable
369
535
\fBXMLLINT_INDENT\fR
370
 
controls the indentation. The default value is two spaces " ".
 
536
controls the indentation\&. The default value is two spaces " "\&.
 
537
.RE
371
538
.SH "DIAGNOSTICS"
372
539
.PP
 
540
 
373
541
\fBxmllint\fR
374
 
return codes provide information that can be used when calling it from scripts.
375
 
.TP
 
542
return codes provide information that can be used when calling it from scripts\&.
 
543
.PP
376
544
\fB0\fR
 
545
.RS 4
377
546
No error
378
 
.TP
 
547
.RE
 
548
.PP
379
549
\fB1\fR
 
550
.RS 4
380
551
Unclassified
381
 
.TP
 
552
.RE
 
553
.PP
382
554
\fB2\fR
 
555
.RS 4
383
556
Error in
384
557
DTD
385
 
.TP
 
558
.RE
 
559
.PP
386
560
\fB3\fR
 
561
.RS 4
387
562
Validation error
388
 
.TP
 
563
.RE
 
564
.PP
389
565
\fB4\fR
 
566
.RS 4
390
567
Validation error
391
 
.TP
 
568
.RE
 
569
.PP
392
570
\fB5\fR
 
571
.RS 4
393
572
Error in schema compilation
394
 
.TP
 
573
.RE
 
574
.PP
395
575
\fB6\fR
 
576
.RS 4
396
577
Error writing output
397
 
.TP
 
578
.RE
 
579
.PP
398
580
\fB7\fR
 
581
.RS 4
399
582
Error in pattern (generated when
400
583
\fB\-\-pattern\fR
401
584
option is used)
402
 
.TP
 
585
.RE
 
586
.PP
403
587
\fB8\fR
 
588
.RS 4
404
589
Error in Reader registration (generated when
405
590
\fB\-\-chkregister\fR
406
591
option is used)
407
 
.TP
 
592
.RE
 
593
.PP
408
594
\fB9\fR
 
595
.RS 4
409
596
Out of memory error
 
597
.RE
410
598
.SH "SEE ALSO"
411
599
.PP
412
600
\fBlibxml\fR(3)
413
601
.PP
414
602
More information can be found at
415
 
.TP 3
416
 
\(bu
 
603
.sp
 
604
.RS 4
 
605
.ie n \{\
 
606
\h'-04'\(bu\h'+03'\c
 
607
.\}
 
608
.el \{\
 
609
.sp -1
 
610
.IP \(bu 2.3
 
611
.\}
417
612
\fBlibxml\fR(3)
418
613
web page
419
 
\fI\%http://www.xmlsoft.org/\fR
420
 
.TP
421
 
\(bu
 
614
\m[blue]\fB\%http://www.xmlsoft.org/\fR\m[]
 
615
.RE
 
616
.sp
 
617
.RS 4
 
618
.ie n \{\
 
619
\h'-04'\(bu\h'+03'\c
 
620
.\}
 
621
.el \{\
 
622
.sp -1
 
623
.IP \(bu 2.3
 
624
.\}
422
625
W3C
423
626
XSLT
424
627
page
425
 
\fI\%http://www.w3.org/TR/xslt\fR
426
 
.SH "AUTHOR"
427
 
John Fleck <jfleck@inkstain.net>, Ziying Sherwin <sherwin@nlm.nih.gov>, Heiko Rupp <hwr@pilhuhn.de>. 
 
628
\m[blue]\fB\%http://www.w3.org/TR/xslt\fR\m[]
 
629
.RE
 
630
.sp
 
631
.SH "AUTHORS"
 
632
.PP
 
633
\fBJohn Fleck\fR <\&jfleck@inkstain\&.net\&>
 
634
.RS 4
 
635
Author.
 
636
.RE
 
637
.PP
 
638
\fBZiying Sherwin\fR <\&sherwin@nlm\&.nih\&.gov\&>
 
639
.RS 4
 
640
Author.
 
641
.RE
 
642
.PP
 
643
\fBHeiko Rupp\fR <\&hwr@pilhuhn\&.de\&>
 
644
.RS 4
 
645
Author.
 
646
.RE
 
647
.SH "COPYRIGHT"
 
648
.br
 
649
Copyright \(co 2001, 2004
 
650
.br