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.
|Published (Last):||14 December 2016|
|PDF File Size:||15.87 Mb|
|ePub File Size:||6.34 Mb|
|Price:||Free* [*Free Regsitration Required]|
DocBook XSL: The Complete Guide
If you need to specify two or more key words for one profiling attribute, you can put them in the parameter separated by semicolons but no spaces. You probably will not want the latest experimental version.
You can place any options such as –output after xsltproc. This is all done with a single XSLT process. As of version 2. For example, if you want to select all elements whose arch attribute value is iior ithen specify the profile. Java versions Product name Java Versions Java 1.
You need to include the full path to the necessary. The default value is 1. Instead of this standard stylesheet: This was done to avoid the overhead of profiling for those who do not use the feature.
If you do not like using a xsltpdoc line interface, you can download the free tkxsltproc from http: If these steps proceed without error, you should be able to run this command to test it:.
Once you have gcc set up, download and unpack the latest xsltproc source archives from http: If your document contains xref or link cross references, then you may need to use the two-pass method.
After you have marked your conditional content with profiling attributes, you select which content to include at runtime by setting certain profiling parameters. This should report the version of Saxon that you have installed, as well as usage and command options. This requires two separate XSLT processes run in sequence. The following command will provide that information:. You can download precompiled versions for Windows from Igor Zlatkovic’s website: The DocBook Saxon and Xalan extensions are not enabled by default.
Installing xsltproc on Linux. This is the commercial version of Saxon 8. You also need to supply a Java option to force it to use the newer versions. To download Xalan-J, go to http: If you are not using any of these features in your documents, then you have no need to turn on the extensions. Xalan is very easy to install because it is a Java program and requires no compiling.
There is a version of xsltproc for Cygwin. Then do the following:. The Instant Saxon processor is a precompiled version of Saxon 6. It is pretty easy to compile xslproc if you use the GNU compiler. Your version of Java determines where the main xalan. So it is perhaps simplest to just copy all the files into a single location already in the PATH. You can use any number of –stringparam options to pass stylesheet parameter values on the docboook line, in this case setting the parameter named use.
Default value is zero.
Install xsltproc and FOP to generate a PDF from a docbook document
The following is a list of the functions and their enabling parameters. Read the directions for understanding the GUI interface used by the Cygwin setup. Computes the intrisic size of images to help size the image for HTML output. Installing xsltproc on Cygwin. Set it to 1 to use any of these extensions. It can be a temporary location because you can move the few files you really need to a new location.
To use any of the extensions, set the use. This section describes how to install the free processors. You can set any number of stylesheet parameters with multiple -param options.
When set to zero, disables all of these extensions. It reports on the Java xzltproc and the version of Xalan. It is probably the most commonly used Saxon package, and is the version used in the examples in this book.
If you cannot find a precompiled version of xsltproc for your platform, or if you want the very latest version, then you can compile it yourself from source. If you have Java version 1. For example, find and copy thefollowing files into C: The Java runtime system is available for download from Sun Microsystems, Inc. The following table lists past and current Java versions: Xalan’s installation process depends on which version of xslgproc Java runtime you will be using to run it.
The DocBook stylesheets have some custom extension functions written specifically for the Xalan processor.