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.

Author: Magul Kigajar
Country: Czech Republic
Language: English (Spanish)
Genre: Automotive
Published (Last): 23 January 2006
Pages: 360
PDF File Size: 1.11 Mb
ePub File Size: 16.51 Mb
ISBN: 477-4-53811-543-6
Downloads: 4369
Price: Free* [*Free Regsitration Required]
Uploader: Akisar

The default value is 1. You might need to search the Internet to find one for your system if it does not already have one. Use this profiling stylesheet: Put the file in a convenient location.

Printed output options Page layout Paper size Finished page size Left and right margins Top and bottom margins Indenting body text Landscape documents Double sided Multi-column Double spacing Typography Body and title font families Font sizes Using renderas to style section titles Chapter and section numbering Depth of section numbering Numbering book parts Page breaking Keep-together processing instruction Soft page breaks Hard page breaks PDF bookmarks Extra blank lines Cross reference page numbers Docbook icon graphics Admonition graphics Callout icons Printing one chapter Crop marks Part III.

It gives you the same command shells and utilities that are available on Linux systems.

Installing xsltproc on Linux. To use xsltproc, you specify the location of the main stylesheet file and your DocBook document, as well as any options and parameters:.

Installing an XSLT processor

As of version 2. Update your Java Since Xalan-J requires a Java runtime environment, you might need to obtain or update your Java setup before Xalan will work. You can use any number of –stringparam options to pass stylesheet parameter values on the command line, in this case setting the parameter named use. The following is a list of the functions and their enabling parameters. If these steps proceed without error, you should be able to run this command to test it: 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.


Switching all cross references to use olink would permit you to use single-pass processing. These functions are contained in a saxon This file is not needed for DocBook processing.

Installing an XSLT processor. To run the xsltproc processor, you need the libxml2 and libxslt packages, the ones with the highest version numbers. The options will fail if the xercesImpl. That profiling-only stylesheet is useful when your document contains xref or link which cannot be resolved with the single-pass processing, or if you are using an XSLT processor that does not support the EXSLT node-set function.

Adjusts the widths of table columns to better match the CALS table specifications. Xsltpoc can copy the.

Install xsltproc and FOP to generate a PDF from a docbook document |

The following table lists past and current Java versions:. That page also describes how to install the files and use xsltproc on Windows. They are not needed for DocBook processing.

That site will also provide you with detailed instructions for getting started with Xalan. In order for the command to find all the Java code it needs, you must add the Java.

docbook-apps message

If you are running a recent vintage of Linux, there is a good chance you will already have xsltproc installed on your system. If you have Java version 1. If you are using more than one profiling attribute, you will need to set a parameter for each one. The backslashes mean the line continues without break, but is eocbook here on separate lines for clarity. You set the conditions for selecting marked elements by passing stylesheet parameters to the XSLT processor.


It accepts the same profiling parameters as the single-pass profiling stylesheets. Setting up the tools Chapter 1.

The XSLT C library for GNOME

This is all done with a single XSLT process. The DocBook stylesheets have some custom extension functions written specifically for the Xalan processor. By default, the profiling stylesheets will output all elements, whether doccbook are marked with profiling attributes or not.

These functions are contained in a file named xalan With Xalan, all the arguments to the command are entered as options, and the order of the options does not matter.

It is even available for Cygwin a Linux environment that runs on Windows. That optional step is included here too. The Java runtime system is available for download from Sun Microsystems, Inc. Getting the tools working.

Unpack the archive Xalan is distributed as a zip file, so you need to unzip it into some suitable location.

The two packages you must have are libxml2 and libxsltboth available dochook the Libs category. You can put any Saxon options such as -o before the document filename. The options are listed at http: To run Saxon, you only need to tell your Java processor where the Saxon.