xsltproc - command line XSLT processor


   xsltproc [[-V | --version] [-v | --verbose] [{-o | --output} {FILE |
            DIRECTORY}] | --timing | --repeat | --debug | --novalid |
            --noout | --maxdepth VALUE | --html | --encoding ENCODING  |
            --param PARAMNAME PARAMVALUE  |
            --stringparam PARAMNAME PARAMVALUE  | --nonet |
            --path "PATH(S)" | --load-trace | --catalogs | --xinclude |
            [--profile | --norman] | --dumpextensions | --nowrite |
            --nomkdir | --writesubtree PATH | --nodtdattr] [STYLESHEET]
            {XML-FILE | -}


   xsltproc is a command line tool for applying XSLT stylesheets to XML
   documents. It is part of libxslt(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.

   xsltproc 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 -

   If a stylesheet is included in an XML document with a Stylesheet
   Processing Instruction, no stylesheet need to be named at the command
   line.  xsltproc will automatically detect the included stylesheet and
   use it.

   By default, output is to stdout. You can specify a file for output
   using the -o or --output option.


   xsltproc accepts the following options (in alphabetical order):

       Use the SGML catalog specified in SGML_CATALOG_FILES to resolve the
       location of external entities. By default, xsltproc looks for the
       catalog specified in XML_CATALOG_FILES. If that is not specified,
       it uses /etc/xml/catalog.

       Output an XML tree of the transformed document for debugging

       Dumps the list of all registered extensions on stdout.

       The input document is an HTML file.

       Display all the documents loaded during the processing to stderr.

   --maxdepth VALUE
       Adjust the maximum depth of the template stack before libxslt(3)
       concludes it is in an infinite loop. The default is 3000.

       Do not apply default attributes from the documents DTD.

       Refuses to create directories.

       Do not use the Internet to fetch DTDs, entities or documents.

       Do not output the result.

       Skip loading the documents DTD.

       Refuses to write to any file or resource.

   -o or --output FILE | DIRECTORY
       Direct output to the given FILE. Using the option with a DIRECTORY
       directs the output files to the specified directory. This can be
       useful for multiple outputs (also known as "chunking") or manpage

       The given directory must already exist.

       Make sure that FILE and DIRECTORY follow the "URI reference
       computation" as described in RFC 2396 and laters. This means, that
       e.g.  -o directory will maybe not work, but -o directory/ will.

   --encoding ENCODING
       Allow to specify the encoding for the input.

       Pass a parameter of name PARAMNAME and value PARAMVALUE to the
       stylesheet. You may pass multiple name/value pairs up to a maximum
       of 32. If the value being passed is a string, you can use
       --stringparam instead, to avoid additional quote characters that
       appear in string expressions. Note: the XPath expression must be
       UTF-8 encoded.

   --path "PATH(S)"
       Use the (space- or colon-separated) list of filesystem paths
       specified by PATHS to load DTDs, entities or documents. Enclose
       space-separated lists by quotation marks.

   --profile or --norman
       Output profiling information detailing the amount of time spent in
       each part of the stylesheet. This is useful in optimizing
       stylesheet performance.

       Run the transformation 20 times. Used for timing tests.

       Pass a parameter of name PARAMNAME and value PARAMVALUE where
       PARAMVALUE is a string rather than a node identifier.  Note: The
       string must be UTF-8 encoded.

       Display the time used for parsing the stylesheet, parsing the
       document and applying the stylesheet and saving the result.
       Displayed in milliseconds.

   -v or --verbose
       Output each step taken by xsltproc in processing the stylesheet and
       the document.

   -V or --version
       Show the version of libxml(3) and libxslt(3) used.

   --writesubtree PATH
       Allow file write only within the PATH subtree.

       Process the input document using the XInclude specification. More
       details on this can be found in the XInclude specification:


       SGML catalog behavior can be changed by redirecting queries to the
       users own set of catalogs. This can be done by setting the
       SGML_CATALOG_FILES environment variable to a list of catalogs. An
       empty one should deactivate loading the default /etc/sgml/catalog

       XML catalog behavior can be changed by redirecting queries to the
       users own set of catalogs. This can be done by setting the
       XML_CATALOG_FILES environment variable to a list of catalogs. An
       empty one should deactivate loading the default /etc/xml/catalog


   xsltproc return codes provide information that can be used when calling
   it from scripts.

       No error (normal operation)

       No argument

       Too many parameters

       Unknown option

       Failed to parse the stylesheet

       Error in the stylesheet

       Error in one of the documents

       Unsupported xsl:output method

       String parameter contains both quote and double-quotes

       Internal processing error

       Processing was stopped by a terminating message

       Could not write the result to the output file


   libxml(3), libxslt(3)

   More information can be found at

   *   libxml(3) web page http://www.xmlsoft.org/

   *   W3C XSLT page http://www.w3.org/TR/xslt


   John Fleck <jfleck@inkstain.net>


   Copyright  2001, 2002

More Linux Commands

fstrim(8) - discard unused blocks on a mounted filesystem...
fstrim is used on a mounted filesystem to discard (or trim) blocks which are not in use by the filesystem. This is useful for solid-state drives (SSDs) and thin

refchan(n) - Command handler API of reflected channels, vers
The Tcl-level handler for a reflected channel has to be a command with subcommands (termed an ensemble, as it is a command such as that created by namespace ens

xdr_u_long(3) - library routines for external data represent
These routines allow C programmers to describe arbitrary data structures in a machine-independent fashion. Data for remote procedure calls are transmitted using

erand48_r(3) - generate uniformly distributed pseudo-random
These functions are the reentrant analogs of the functions described in drand48(3). Instead of modifying the global random generator state, they use the supplie

armscii-8(7) - Armenian character set encoded in octal, deci
The Armenian Standard Code for Information Interchange, 8-bit coded character set. ArmSCII-8 characters The following table displays the characters in ArmSCII-8

glRasterPos4d(3gl) - specify the raster position for pixel o
The GL maintains a 3D position in window coordinates. This position, called the raster position, is used to position pixel and bitmap write operations. It is ma

lrange(n) - Return one or more adjacent elements from a list
List must be a valid Tcl list. This command will return a new list consisting of elements first through last, inclusive. The index values first and last are int

gnutls_certificate_set_openpgp_key_file(3) - API function...
This funtion is used to load OpenPGP keys into the GnuTLS credentials structure. The file should contain at least one valid non encrypted subkey. RETURNS On suc

File::stat(3pm) - by-name interface to Perl's built-in stat(
This modules default exports override the core stat() and lstat() functions, replacing them with versions that return File::stat objects. This object has method

icecream(7) - A distributed compile system - Linux man page
Icecream is a distributed compile system for C and C++. Icecream is created by SUSE and is based on ideas and code by distcc. Like distcc it takes compile jobs

dracut.modules(7) dracut modules (Misc - Linux man page)....
dracut uses a modular system to build and extend the initramfs image. All modules are located in /usr/lib/dracut/modules.d or in &lt;git-src&gt;/modules.d. The most b

setutxent(3) - access utmp file entries - Linux manual page
New applications should use the POSIX.1-specified utmpx versions of these functions; see CONFORMING TO. utmpname() sets the name of the utmp-format file for the

We can't live, work or learn in freedom unless the software we use is free.