SEARCH
NEW RPMS
DIRECTORIES
ABOUT
FAQ
VARIOUS
BLOG
DONATE


YUM REPOSITORY

 
 

MAN page from OpenSuSE libxslt-1.1.26-3.21.1.x86_64.rpm

XSLTPROC

Section: xsltproc Manual (1)
Updated: $Date: 2008-04-21 16:28:56 +0200 (Mon, 21 Apr 2008) $
Index 

NAME

xsltproc - command line XSLT processor 

SYNOPSIS

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

DESCRIPTION

xsltproc

is a command line tool for applyingXSLTstylesheets toXMLdocuments. It is part oflibxslt(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.

xsltprocis 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 anXMLdocument with a Stylesheet Processing Instruction, no stylesheet need to be named at the command line.xsltprocwill automatically detect the included stylesheet and use it.

By default, output is tostdout. You can specify a file for output using the-oor--outputoption. 

OPTIONS

xsltprocaccepts the following options (in alphabetical order):

--catalogs

Use theSGMLcatalog specified inSGML_CATALOG_FILESto resolve the location of external entities. By default,xsltproclooks for the catalog specified inXML_CATALOG_FILES. If that is not specified, it uses/etc/xml/catalog.

--debug

Output anXMLtree of the transformed document for debugging purposes.

--dumpextensions

Dumps the list of all registered extensions onstdout.

--html

The input document is anHTMLfile.

--load-trace

Display all the documents loaded during the processing tostderr.

--maxdepth VALUE

Adjust the maximum depth of the template stack beforelibxslt(3)concludes it is in an infinite loop. The default is 3000.

--nodtdattr

Do not apply default attributes from the document'sDTD.

--nomkdir

Refuses to create directories.

--nonet

Do not use the Internet to fetchDTDs, entities or documents.

--noout

Do not output the result.

--novalid

Skip loading the document'sDTD.

--nowrite

Refuses to write to any file or resource.

-o or --output FILE | DIRECTORY

Direct output to the givenFILE. Using the option with aDIRECTORYdirects the output files to the specified directory. This can be useful for multiple outputs (also known as "chunking") or manpage processing.


ImportantThe given directorymustalready exist.


NoteMake sure thatFILEandDIRECTORYfollow thelqURI reference computationrqas described in RFC 2396 and laters. This means, that e.g.-o directorywill maybe not work, but-o directory/will.

--encoding ENCODING

Allow to specify the encoding for the input.

--param PARAMNAME PARAMVALUE

Pass a parameter of namePARAMNAMEand valuePARAMVALUEto 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--stringparaminstead, 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 byPATHSto loadDTDs, 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.

--repeat

Run the transformation 20 times. Used for timing tests.

--stringparam PARAMNAME PARAMVALUE

Pass a parameter of namePARAMNAMEand valuePARAMVALUEwherePARAMVALUEis a string rather than a node identifier.Note:The string must be UTF-8 encoded.

--timing

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 byxsltprocin processing the stylesheet and the document.

-V or --version

Show the version oflibxml(3)andlibxslt(3)used.

--writesubtree PATH

Allow file write only within thePATHsubtree.

--xinclude

Process the input document using the XInclude specification. More details on this can be found in the XInclude specification:http://www.w3.org/TR/xinclude/
 

ENVIRONMENT

SGML_CATALOG_FILES

SGMLcatalog behavior can be changed by redirecting queries to the user's own set of catalogs. This can be done by setting theSGML_CATALOG_FILESenvironment variable to a list of catalogs. An empty one should deactivate loading the default/etc/sgml/catalogcatalog.

XML_CATALOG_FILES

XMLcatalog behavior can be changed by redirecting queries to the user's own set of catalogs. This can be done by setting theXML_CATALOG_FILESenvironment variable to a list of catalogs. An empty one should deactivate loading the default/etc/xml/catalogcatalog.
 

DIAGNOSTICS

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

0

No error (normal operation)

1

No argument

2

Too many parameters

3

Unknown option

4

Failed to parse the stylesheet

5

Error in the stylesheet

6

Error in one of the documents

7

Unsupported xsl:output method

8

String parameter contains both quote and double-quotes

9

Internal processing error

10

Processing was stopped by a terminating message

11

Could not write the result to the output file
 

SEE ALSO

libxml(3),libxslt(3)

More information can be found at

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

*W3CXSLTpagehttp://www.w3.org/TR/xslt

 

AUTHOR

John Fleck <jfleckAATTinkstain.net>

Author.
 

COPYRIGHT

Copyright © 2001, 2002


 

Index

NAME
SYNOPSIS
DESCRIPTION
OPTIONS
ENVIRONMENT
DIAGNOSTICS
SEE ALSO
AUTHOR
COPYRIGHT

This document was created byman2html,using the manual pages.