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: | Kigalrajas Kazrale |
Country: | Vietnam |
Language: | English (Spanish) |
Genre: | Travel |
Published (Last): | 11 March 2015 |
Pages: | 17 |
PDF File Size: | 16.39 Mb |
ePub File Size: | 15.7 Mb |
ISBN: | 202-5-82303-582-6 |
Downloads: | 54078 |
Price: | Free* [*Free Regsitration Required] |
Uploader: | Mazujora |
Note that the XML document name precedes the stylesheet path in a Saxon command line. These functions are contained in a saxon That compiler is generally available on all Linux distributions, and is also available for many Unix systems.
If you are running Java 1. If you are comfortable with Linux, then you can have it on Windows too. There is a version of xsltproc for Cygwin. Once you have unpacked ssltproc, your environment’s PATH variable must include the locations of the command files like xsltproc.
Cygwin is a Linux-like environment that runs on Windows. To download Xalan-J, go to http: You should also install one of the shells such as bash.
You can xsltprlc precompiled versions for Windows from Igor Zlatkovic’s website: Java 2 Platform, Standard Edition 5.
If these steps proceed without error, you should be able to run this command to test it: You set the conditions for selecting marked elements by passing stylesheet parameters to the XSLT processor. To use xsltproc, you specify the location of the main stylesheet file and your DocBook document, as well dodbook any options and parameters:.
To use any of the extensions, set the use. You will need to have root permission to run the install step.
Install xsltproc and FOP to generate a PDF from a docbook document
The Instant Saxon processor is a precompiled version of Saxon 6. Xalan is distributed as a zip file, xwltproc you need to unzip it into some suitable location. If you are running a recent vintage of Linux, there is a good chance you will already have xsltproc installed on your system. Then do the following:. You can also set any number of stylesheet parameters such as use.
To run Saxon, you only need to tell your Java processor where the Saxon. Program listings Formatting listings Tab expansion Fitting text Full-width examples Reducing font size Breaking long lines External code files Missing text Using XInclude for text inclusions Annotating program listings Line annotations Line numbering Callouts Callouts on imported text Callouts on graphics Syntax highlighting Chapter You will need a C compiler and associated Make tools unless you are using Windows.
You need to include the full path to the doxbook. 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.
This should report the version of Saxon that you have installed, as well as usage and command options. In order for the command to find all the Java code it needs, you must add the Java. Any for which you do not will have all versions included in the output, which is probably not what you want. When set to zero, disables all of these extensions. You can set any number of stylesheet parameters with multiple -param options. Installing xsltproc on Windows. Use the one closest to your Saxon version number.
If you are profiling on the condition attribute, then you would set the profile. Glossaries Glossary formatting Glossary formatting in print Linking to a glossary entry What about link and xref?
It may not be present, depending on which package of Xalan you downloaded. Glossary database Glossary database catalog entry Links in a glossary collection Glossary sorting Chapter 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.
The output is a filtered version of your original XML document, with the profiling conditions applied so that some elements are excluded. Saxon-SA 8 This is the commercial version of Saxon 8. DocBook Consulting Services available.
Saxon is a Java application that is executed from a command line. But you may want it for other stylesheets. Try the following command to see if you do:.
Install xsltproc and FOP to generate a PDF from a docbook document |
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 The web page has a link to where you can download just the latest jar file, xercesImpl.
Then the new Xalan will be used in place of the built-in Xalan that comes with Java 1. If your version of Xalan is earlier that 2.
Unpack the distribution archives the version numbers will be different from this example: