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: 2007\-08\-23 14:20:49 +0200 (Thu, 23 Aug 2007) $" "libxslt" ""
6 .\" disable hyphenation
8 .\" disable justification (adjust text to left margin only)
11 xsltproc \- command line XSLT processor
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 \-}
18 is a command line tool for applying
22 documents. 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.
26 is 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
30 If a stylesheet is included in an
32 document with a Stylesheet Processing Instruction, no stylesheet need to be named at the command line.
34 will automatically detect the included stylesheet and use it.
36 By default, output is to
37 \fIstdout\fR. You can specify a file for output using the
45 accepts the following options (in alphabetical order):
51 \fBSGML_CATALOG_FILES\fR
52 to resolve the location of external entities. By default,
54 looks for the catalog specified in
55 \fBXML_CATALOG_FILES\fR. If that is not specified, it uses
56 \fI/etc/xml/catalog\fR.
61 tree of the transformed document for debugging purposes.
63 \fB\-\-dumpextensions\fR
64 Dumps the list of all registered extensions on
68 The input document is an
73 Display all the documents loaded during the processing to
76 \fB\-\-maxdepth \fR\fB\fIVALUE\fR\fR
77 Adjust the maximum depth of the template stack before
79 concludes it is in an infinite loop. The default is 500.
82 Do not apply default attributes from the document's
86 Refuses to create directories.
89 Do not use the Internet to fetch
90 DTDs, entities or documents.
93 Do not output the result.
96 Skip loading the document's
100 Refuses to write to any file or resource.
102 \fB\-o\fR or \fB\-\-output\fR \fIFILE\fR | \fIDIRECTORY\fR
103 Direct output to the given
104 \fIFILE\fR. Using the option with a
106 directs the output files to the specified directory. This can be useful for multiple outputs (also known as "chunking") or manpage processing.
109 .nr an-no-space-flag 1
118 .nr an-no-space-flag 1
127 \(lqURI reference computation\(rq
128 as described in RFC 2396 and laters. This means, that e.g.
130 will maybe not work, but
134 \fB\-\-encoding \fR\fB\fIENCODING\fR\fR
135 Allow to specify the encoding for the input.
137 \fB\-\-param \fR\fB\fIPARAMNAME\fR\fR\fB \fR\fB\fIPARAMVALUE\fR\fR
138 Pass a parameter of name
142 to 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
146 \fB\-\-path "\fR\fB\fIPATH(S)\fR\fR\fB"\fR
147 Use the (space\- or colon\-separated) list of filesystem paths specified by
150 DTDs, entities or documents. Enclose space\-separated lists by quotation marks.
152 \fB\-\-profile\fR or \fB\-\-norman\fR
153 Output profiling information detailing the amount of time spent in each part of the stylesheet. This is useful in optimizing stylesheet performance.
156 Run the transformation 20 times. Used for timing tests.
158 \fB\-\-stringparam \fR\fB\fIPARAMNAME\fR\fR\fB \fR\fB\fIPARAMVALUE\fR\fR
159 Pass a parameter of name
165 is a string rather than a node identifier.
167 The string must be UTF\-8 encoded.
170 Display the time used for parsing the stylesheet, parsing the document and applying the stylesheet and saving the result. Displayed in milliseconds.
172 \fB\-v\fR or \fB\-\-verbose\fR
173 Output each step taken by
175 in processing the stylesheet and the document.
177 \fB\-V\fR or \fB\-\-version\fR
184 \fB\-\-writesubtree \fR\fB\fIPATH\fR\fR
185 Allow file write only within the
190 Process 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
194 \fBSGML_CATALOG_FILES\fR
196 catalog 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
198 environment variable to a list of catalogs. An empty one should deactivate loading the default
199 \fI/etc/sgml/catalog\fR
202 \fBXML_CATALOG_FILES\fR
204 catalog 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
206 environment variable to a list of catalogs. An empty one should deactivate loading the default
207 \fI/etc/xml/catalog\fR
212 return codes provide information that can be used when calling it from scripts.
215 No error (normal operation)
227 Failed to parse the stylesheet
230 Error in the stylesheet
233 Error in one of the documents
236 Unsupported xsl:output method
239 String parameter contains both quote and double\-quotes
242 Internal processing error
245 Processing was stopped by a terminating message
248 Could not write the result to the output file
254 More information can be found at
259 \fI\%http://www.xmlsoft.org/\fR
265 \fI\%http://www.w3.org/TR/xslt\fR
267 John Fleck <jfleck@inkstain.net>.