xsltproc and libxslt are not specifically dependant on DocBook, but since a lot of people use xsltproc and libxml2 for DocBook formatting, here are a few pointers. The docbook-html5 project is a set of XSLT stylesheets for transforming DocBook 5 Examples given here use xsltproc, an open source cross-platform XSLT. Reason: missing introduction (Discuss in Talk:DocBook#) xsltproc /usr/share/ xml/docbook/$(pacman -Q docbook-xsl | cut -d ‘ ‘ -f 2 | cut -d ‘-‘ -f.
If you are comfortable with Linux, then you can have it on Windows too. If you are using more than one profiling attribute, you will need to set a parameter for each one. The profiling stylesheets perform the normal DocBook XSL processing after doing the profiling step to select the content to process.
On Windows, use the Control Panel to open the System icon, where you can set environment variables for Windows.
If you cannot xzltproc a precompiled version of xsltproc for your platform, or if you want the very latest version, then you can compile it yourself from source. Your version of Java determines where the main xalan.
Either one will work for DocBook processing. To use xsltproc, you specify the location of the main stylesheet file and your DocBook document, as well as any options and parameters:.
And of course any elements that do not have an os attribute at all are included in the output as well. The section on installing Saxon included an optional step for downloading the Xerces parser. That is because ID lookups are not standardized for internal node-sets, so not all processors can resolve them.
Installing an XSLT processor
It gives you the same command shells and utilities that are available on Linux systems. This should report the version of Saxon that you have installed, as well as usage and command options.
That page also describes how to install the files and use xsltproc on Windows. If you are running Java 1. Here are some command examples.
Processing profiled versions
You need to include the full path to. Switching all cross references to use olink would permit you to use single-pass processing. This file is not needed for DocBook processing. Xsltlroc may not be present, depending on which package of Xalan you downloaded. If you do not like using a command line interface, you can download the free tkxsltproc from http: Then commands such as these should work:.
Install xsltproc and FOP to generate a PDF from a docbook document
Here javahome is the directory where the runtime software is installed which is the top-level directory of the Java 2 Runtime Environment or the jre directory in the Java 2 SDK. You can copy the. You can place any options such as –output after xsltproc. For example, find and copy thefollowing dcobook into C: The possible options are listed at http: Profiling conditional text Marking conditional text Marking small bits of text Multiple profiling conditions Processing profiled versions Single-pass processing Two-pass processing Customization and profiling Validation and profiling Custom profiling attribute Adding new profiling attributes Adding attributes to the DTD Adding attributes to RelaxNG Profiling with new attributes Using the role attribute for profiling Chapter They are not needed for DocBook processing.
The following is a list of the functions and their enabling parameters. The result of the first command is a file named myfile.
Xalan is distributed docook a zip file, so you need to unzip it into some suitable location. Set it to 1 to use any of these extensions. If it does not already exist in the list, then select New.
It reports on the Java environment and the version of Xalan. If you get a Command Not Found error message, then you need to find where xsltproc is installed and add that location to your PATH environment variable.