VirtualBox

source: vbox/trunk/src/libs/libxslt-1.1.22/doc/xsltproc.1@ 7979

Last change on this file since 7979 was 7296, checked in by vboxsync, 17 years ago

Added libxslt-1.1.22 sources.

  • Property svn:eol-style set to native
  • Property svn:keywords set to Date Revision Author Id
File size: 7.3 KB
Line 
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 "XSLTPROC" "1" "$Date: 2008-03-05 10:43:38 +0000 (Wed, 05 Mar 2008) $" "libxslt" ""
6.\" disable hyphenation
7.nh
8.\" disable justification (adjust text to left margin only)
9.ad l
10.SH "NAME"
11xsltproc \- command line XSLT processor
12.SH "SYNOPSIS"
13.HP 9
14\fBxsltproc\fR [[\fB\-V\fR \fB\-\-version\fR] [\fB\-v\fR \fB\-\-verbose\fR] [{\fB\-o\fR \fB\-\-output\fR} {\fIFILE\fR \fIDIRECTORY\fR}] \fB\-\-timing\fR \fB\-\-repeat\fR \fB\-\-debug\fR \fB\-\-novalid\fR \fB\-\-noout\fR \fB\-\-maxdepth\ \fR\fB\fIVALUE\fR\fR \fB\-\-html\fR \fB\-\-param\ \fR\fB\fIENCODING\fR\fR\fB\ \fR \fB\-\-param\ \fR\fB\fIPARAMNAME\fR\fR\fB\ \fR\fB\fIPARAMVALUE\fR\fR\fB\ \fR \fB\-\-stringparam\ \fR\fB\fIPARAMNAME\fR\fR\fB\ \fR\fB\fIPARAMVALUE\fR\fR\fB\ \fR \fB\-\-nonet\fR \fB\-\-path\ "\fR\fB\fIPATH(S)\fR\fR\fB"\fR \fB\-\-load\-trace\fR \fB\-\-catalogs\fR \fB\-\-xinclude\fR [\fB\-\-profile\fR\ \fB\-\-norman\fR] \fB\-\-dumpextensions\fR \fB\-\-nowrite\fR \fB\-\-nomkdir\fR \fB\-\-writesubtree\ \fR\fB\fIPATH\fR\fR \fB\-\-nodtdattr\fR] [\fISTYLESHEET\fR] {\fIXML\-FILE\fR \-}
15.SH "DESCRIPTION"
16.PP
17\fBxsltproc\fR
18is a command line tool for applying
19XSLT
20stylesheets to
21XML
22documents. It is part of
23\fBlibxslt\fR(3), the XSLT C library for GNOME. While it was developed as part of the GNOME project, it can operate independently of the GNOME desktop.
24.PP
25\fBxsltproc\fR
26is invoked from the command line with the name of the stylesheet to be used followed by the name of the file or files to which the stylesheet is to be applied. It will use the standard input if a filename provided is
27\fB\-\fR
28.
29.PP
30If a stylesheet is included in an
31XML
32document with a Stylesheet Processing Instruction, no stylesheet need to be named at the command line.
33\fBxsltproc\fR
34will automatically detect the included stylesheet and use it.
35.PP
36By default, output is to
37\fIstdout\fR. You can specify a file for output using the
38\fB\-o\fR
39or
40\fB\-\-output\fR
41option.
42.SH "OPTIONS"
43.PP
44\fBxsltproc\fR
45accepts the following options (in alphabetical order):
46.TP
47\fB\-\-catalogs\fR
48Use the
49SGML
50catalog specified in
51\fBSGML_CATALOG_FILES\fR
52to resolve the location of external entities. By default,
53\fBxsltproc\fR
54looks for the catalog specified in
55\fBXML_CATALOG_FILES\fR. If that is not specified, it uses
56\fI/etc/xml/catalog\fR.
57.TP
58\fB\-\-debug\fR
59Output an
60XML
61tree of the transformed document for debugging purposes.
62.TP
63\fB\-\-dumpextensions\fR
64Dumps the list of all registered extensions on
65\fIstdout\fR.
66.TP
67\fB\-\-html\fR
68The input document is an
69HTML
70file.
71.TP
72\fB\-\-load\-trace\fR
73Display all the documents loaded during the processing to
74\fIstderr\fR.
75.TP
76\fB\-\-maxdepth \fR\fB\fIVALUE\fR\fR
77Adjust the maximum depth of the template stack before
78\fBlibxslt\fR(3)
79concludes it is in an infinite loop. The default is 500.
80.TP
81\fB\-\-nodtdattr\fR
82Do not apply default attributes from the document's
83DTD.
84.TP
85\fB\-\-nomkdir\fR
86Refuses to create directories.
87.TP
88\fB\-\-nonet\fR
89Do not use the Internet to fetch
90DTDs, entities or documents.
91.TP
92\fB\-\-noout\fR
93Do not output the result.
94.TP
95\fB\-\-novalid\fR
96Skip loading the document's
97DTD.
98.TP
99\fB\-\-nowrite\fR
100Refuses to write to any file or resource.
101.TP
102\fB\-o\fR or \fB\-\-output\fR \fIFILE\fR | \fIDIRECTORY\fR
103Direct output to the given
104\fIFILE\fR. Using the option with a
105\fIDIRECTORY\fR
106directs the output files to the specified directory. This can be useful for multiple outputs (also known as "chunking") or manpage processing.
107.sp
108.it 1 an-trap
109.nr an-no-space-flag 1
110.nr an-break-flag 1
111.br
112\fBImportant\fR
113The given directory
114\fBmust\fR
115already exist.
116.sp
117.it 1 an-trap
118.nr an-no-space-flag 1
119.nr an-break-flag 1
120.br
121\fBNote\fR
122Make sure that
123\fIFILE\fR
124and
125\fIDIRECTORY\fR
126follow the
127\(lqURI reference computation\(rq
128as described in RFC 2396 and laters. This means, that e.g.
129\fB\-o directory\fR
130will maybe not work, but
131\fB\-o directory/\fR
132will.
133.TP
134\fB\-\-encoding \fR\fB\fIENCODING\fR\fR
135Allow to specify the encoding for the input.
136.TP
137\fB\-\-param \fR\fB\fIPARAMNAME\fR\fR\fB \fR\fB\fIPARAMVALUE\fR\fR
138Pass a parameter of name
139\fIPARAMNAME\fR
140and value
141\fIPARAMVALUE\fR
142to the stylesheet. You may pass multiple name/value pairs up to a maximum of 32. If the value being passed is a string rather than a node identifier, use
143\fB\-\-stringparam\fR
144instead.
145.TP
146\fB\-\-path "\fR\fB\fIPATH(S)\fR\fR\fB"\fR
147Use the (space\- or colon\-separated) list of filesystem paths specified by
148\fIPATHS\fR
149to load
150DTDs, entities or documents. Enclose space\-separated lists by quotation marks.
151.TP
152\fB\-\-profile\fR or \fB\-\-norman\fR
153Output profiling information detailing the amount of time spent in each part of the stylesheet. This is useful in optimizing stylesheet performance.
154.TP
155\fB\-\-repeat\fR
156Run the transformation 20 times. Used for timing tests.
157.TP
158\fB\-\-stringparam \fR\fB\fIPARAMNAME\fR\fR\fB \fR\fB\fIPARAMVALUE\fR\fR
159Pass a parameter of name
160\fIPARAMNAME\fR
161and value
162\fIPARAMVALUE\fR
163where
164\fIPARAMVALUE\fR
165is a string rather than a node identifier.
166\fBNote:\fR
167The string must be UTF\-8 encoded.
168.TP
169\fB\-\-timing\fR
170Display the time used for parsing the stylesheet, parsing the document and applying the stylesheet and saving the result. Displayed in milliseconds.
171.TP
172\fB\-v\fR or \fB\-\-verbose\fR
173Output each step taken by
174\fBxsltproc\fR
175in processing the stylesheet and the document.
176.TP
177\fB\-V\fR or \fB\-\-version\fR
178Show the version of
179\fBlibxml\fR(3)
180and
181\fBlibxslt\fR(3)
182used.
183.TP
184\fB\-\-writesubtree \fR\fB\fIPATH\fR\fR
185Allow file write only within the
186\fIPATH\fR
187subtree.
188.TP
189\fB\-\-xinclude\fR
190Process the input document using the XInclude specification. More details on this can be found in the XInclude specification:
191\fI\%http://www.w3.org/TR/xinclude/\fR
192.SH "ENVIRONMENT"
193.TP
194\fBSGML_CATALOG_FILES\fR
195SGML
196catalog behavior can be changed by redirecting queries to the user's own set of catalogs. This can be done by setting the
197\fBSGML_CATALOG_FILES\fR
198environment variable to a list of catalogs. An empty one should deactivate loading the default
199\fI/etc/sgml/catalog\fR
200catalog.
201.TP
202\fBXML_CATALOG_FILES\fR
203XML
204catalog behavior can be changed by redirecting queries to the user's own set of catalogs. This can be done by setting the
205\fBXML_CATALOG_FILES\fR
206environment variable to a list of catalogs. An empty one should deactivate loading the default
207\fI/etc/xml/catalog\fR
208catalog.
209.SH "DIAGNOSTICS"
210.PP
211\fBxsltproc\fR
212return codes provide information that can be used when calling it from scripts.
213.TP
214\fB0\fR
215No error (normal operation)
216.TP
217\fB1\fR
218No argument
219.TP
220\fB2\fR
221Too many parameters
222.TP
223\fB3\fR
224Unknown option
225.TP
226\fB4\fR
227Failed to parse the stylesheet
228.TP
229\fB5\fR
230Error in the stylesheet
231.TP
232\fB6\fR
233Error in one of the documents
234.TP
235\fB7\fR
236Unsupported xsl:output method
237.TP
238\fB8\fR
239String parameter contains both quote and double\-quotes
240.TP
241\fB9\fR
242Internal processing error
243.TP
244\fB10\fR
245Processing was stopped by a terminating message
246.TP
247\fB11\fR
248Could not write the result to the output file
249.SH "SEE ALSO"
250.PP
251\fBlibxml\fR(3),
252\fBlibxslt\fR(3)
253.PP
254More information can be found at
255.TP 3
256\(bu
257\fBlibxml\fR(3)
258web page
259\fI\%http://www.xmlsoft.org/\fR
260.TP
261\(bu
262W3C
263XSLT
264page
265\fI\%http://www.w3.org/TR/xslt\fR
266.SH "AUTHOR"
267John Fleck <[email protected]>.
Note: See TracBrowser for help on using the repository browser.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette