EnglishFrenchSpanish

OnWorks favicon

xsltproc - Online in the Cloud

Run xsltproc in OnWorks free hosting provider over Ubuntu Online, Fedora Online, Windows online emulator or MAC OS online emulator

This is the command xsltproc that can be run in the OnWorks free hosting provider using one of our multiple free online workstations such as Ubuntu Online, Fedora Online, Windows online emulator or MAC OS online emulator

PROGRAM:

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

OPTIONS


xsltproc accepts the following options (in alphabetical order):

--catalogs
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.

--debug
Output an XML tree of the transformed document for debugging purposes.

--dumpextensions
Dumps the list of all registered extensions on stdout.

--html
The input document is an HTML file.

--load-trace
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.

--nodtdattr
Do not apply default attributes from the document´s DTD.

--nomkdir
Refuses to create directories.

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

--noout
Do not output the result.

--novalid
Skip loading the document´s DTD.

--nowrite
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 processing.

Important
The given directory must already exist.

Note
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.

--param PARAMNAME PARAMVALUE
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.

--repeat
Run the transformation 20 times. Used for timing tests.

--stringparam PARAMNAME PARAMVALUE
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.

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

--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
SGML catalog behavior can be changed by redirecting queries to the user´s 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
catalog.

XML_CATALOG_FILES
XML catalog behavior can be changed by redirecting queries to the user´s 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
catalog.

DIAGNOSTICS


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

Use xsltproc online using onworks.net services


Free Servers & Workstations

Download Windows & Linux apps

  • 1
    KDiff3
    KDiff3
    This repository is no longer maintained
    and is kept for archival purposes. See
    https://invent.kde.org/sdk/kdiff3 for
    the newest code and
    https://download.kde.o...
    Download KDiff3
  • 2
    USBLoaderGX
    USBLoaderGX
    USBLoaderGX is a GUI for
    Waninkoko's USB Loader, based on
    libwiigui. It allows listing and
    launching Wii games, Gamecube games and
    homebrew on Wii and WiiU...
    Download USBLoaderGX
  • 3
    Firebird
    Firebird
    Firebird RDBMS offers ANSI SQL features
    & runs on Linux, Windows &
    several Unix platforms. Features
    excellent concurrency & performance
    & power...
    Download Firebird
  • 4
    KompoZer
    KompoZer
    KompoZer is a wysiwyg HTML editor using
    the Mozilla Composer codebase. As
    Nvu's development has been stopped
    in 2005, KompoZer fixes many bugs and
    adds a f...
    Download KompoZer
  • 5
    Free Manga Downloader
    Free Manga Downloader
    The Free Manga Downloader (FMD) is an
    open source application written in
    Object-Pascal for managing and
    downloading manga from various websites.
    This is a mirr...
    Download Free Manga Downloader
  • 6
    UNetbootin
    UNetbootin
    UNetbootin allows you to create bootable
    Live USB drives for Ubuntu, Fedora, and
    other Linux distributions without
    burning a CD. It runs on Windows, Linux,
    and ...
    Download UNetbootin
  • More »

Linux commands

  • 1
    abc2abc
    abc2abc
    abc2abc - a simple abc
    checker/re-formatter/transposer ...
    Run abc2abc
  • 2
    abc2ly
    abc2ly
    abc2ly - manual page for abc2ly
    (LilyPond) 2.18.2 ...
    Run abc2ly
  • 3
    coqdoc
    coqdoc
    coqdoc - A documentation tool for the
    Coq proof assistant ...
    Run coqdoc
  • 4
    coqide
    coqide
    coqide - The Coq Proof Assistant
    graphical interface ...
    Run coqide
  • 5
    g.gui.vdigitgrass
    g.gui.vdigitgrass
    g.gui.vdigit - Interactive editing and
    digitization of vector maps. KEYWORDS:
    general, user interface, GUI, vector,
    editing, digitizer ...
    Run g.gui.vdigitgrass
  • 6
    g.listgrass
    g.listgrass
    g.list - Lists available GRASS data
    base files of the user-specified data
    type optionally using the search
    pattern. KEYWORDS: general, map
    management, list ...
    Run g.listgrass
  • More »

Ad