April 26, 2020

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: Duramar Tonos
Country: Ghana
Language: English (Spanish)
Genre: Health and Food
Published (Last): 1 November 2011
Pages: 264
PDF File Size: 20.30 Mb
ePub File Size: 5.90 Mb
ISBN: 289-7-36493-724-5
Downloads: 95900
Price: Free* [*Free Regsitration Required]
Uploader: Shaktigis

You can download precompiled versions for Windows from Igor Zlatkovic’s website: Each extension has its own stylesheet parameter, and they are all set to 1 on by default. If you are already in a DOS window, you will need to exit and restart it for the new environment variable to take effect. This is all done with a single XSLT process.

docbook-apps message

Customization methods Customization layer Writing a customization layer Using a customization layer Customizing both HTML and FO Using catalogs with customizations Setting parameters Attribute sets Completing placeholder templates Generating new templates Generated text Default generated text Customizing generated text Replacing templates Finding the right template Import precedence Passing parameters Utility templates and modes Adding new templates Formatting determined by attribute value Adding processing steps Handling new elements Template selection rules Processing instructions Customizing DocBook 5 XSL DocBook 5 customization details Annotations customization Chapter Stylesheet parameter Function More information use.

For example, if you set the stylesheet parameter profile. You can place any options such as –output after xsltproc. There are three files in the directory you unpacked Saxon xlstproc.


Since they install into separate directories, you may need to add several PATH entries. Either one will work for DocBook processing.

Special DocBook features Chapter It is pretty easy to compile xslproc if you use the GNU compiler. The Xalan options are listed at http: However, there is no harm in turning them on. You will need a C compiler and associated Make tools unless you are using Windows.


In the current implementation, single-pass profiling is handled with customized versions of the DocBook stylesheets. The profiling stylesheets perform the normal DocBook XSL processing after doing the profiling step to select the content to process. The Instant Saxon processor is a precompiled version of Saxon 6. The following is a list of the functions and their enabling parameters.

It is even available for Cygwin a Linux environment that runs on Windows. To use xsltproc, you specify the location of the main stylesheet file and your DocBook document, as well as any options and parameters:. The DocBook stylesheets have some custom extension functions written specifically for the Xalan processor. Cross references Cross references within a document Linking from other elements Options for generated xref text Cross references between documents Linking to websites Breaking long URLs DocBook 5 cross references Customizing cross references Customizing with an xrefstyle attribute Modifying gentext templates Customizing cross reference behavior Customizing cross docvook typography Specialized cross references Chapter The result of the first command is a file named myfile.

If you have Java version 1.

Installing an XSLT processor

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. Xalan’s installation process depends on which version of the Java runtime you will be using to run it. If you get Command not found then you may not have Java installed on the system, or it may not be in your PATH xslgproc variable. The default value is 1. If for some reason Xalan does not xsltprooc, you may need to know what version of Xalan and Java you are running to track down the problem.


Use the one closest to your Saxon version number. This is the commercial version of Saxon 8.

DocBook XSL: The Complete Guide

You can copy the. Setting up the tools Chapter 1. Any other elements that have an os attribute whose value does not match linux are ignored. The two packages you must have are libxml2 and libxsltboth available under the Libs category.

The options will fail if the xercesImpl. These -D options must appear before the com. In this example, the parameter named use. That includes Saxon, Xalan, and xsltproc. Glossaries Glossary formatting Glossary formatting in print Linking to a glossary entry What about link and xref?

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