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):||26 December 2006|
|PDF File Size:||20.75 Mb|
|ePub File Size:||2.82 Mb|
|Price:||Free* [*Free Regsitration Required]|
The two packages you must have are libxml2 and libxsltboth available under the Libs category. Currently Saxon is available in four packages:.
Re: [docbook-apps] unresolved xincludes with xsltproc
You will need a C compiler and associated Make tools unless you are using Windows. 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 for some reason Xalan does not work, you may xslyproc to know what version of Xalan and Java you are running to track down the problem.
If you are not using any of these features in your documents, then you have no need to turn on the extensions. Installing xsltproc on Cygwin. Similar stylesheet parameters are available for the other profiling attributes. Put the file in a convenient location. Introduction How this book is organized Online resources for finding solutions to problems Chapter 2.
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 xsltporc references Customizing with an xrefstyle attribute Modifying gentext templates Customizing cross reference behavior Customizing cross reference typography Specialized cross references Chapter The possible options are listed at http: Then commands such as these should work:.
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 xsltprod elements Template selection rules Processing instructions Customizing DocBook 5 XSL DocBook 5 customization details Annotations customization Chapter However, there is no harm in turning them on.
The following is a list of xsltprc functions and their enabling parameters. This is the commercial version of Saxon 8. You should check the details with each product that is described here, as the steps may change over time.
It accepts the same profiling parameters as the single-pass profiling stylesheets. That environment variable is used by the Java processor to locate compiled code used by Java programs. If it does not already exist in the list, then select New.
Not used for print output. Note that the XML document name precedes the stylesheet path in a Saxon command line.
You can put any Saxon options such as -o before the document filename. Then try xsltproc -version to see if it reports the new version number. You can find out which Java is on your system by executing java -version.
These functions are contained in a file named xalan If you are profiling on the condition attribute, then you would set the profile. Sample application using Xalan in a Java servlet. The commercial processors are assumed to provide instructions and support. You will need to have root permission to run the install step. You will want to download and install a xsltpric version of Xalan.
The XSLT C library for GNOME
Java version numbering has evolved over the years. The following command will provide that information:.
If you are already in a DOS window, you will need to exit and restart it for the new environment variable to take effect. If you are comfortable with Linux, then you can have it on Windows too.
Install xsltproc and FOP to generate a PDF from a docbook document |
The options will fail if the xercesImpl. Any for which you do not will have all versions included in the output, which is probably not what you want. You should also install one of the shells such as bash. If your Java is not version 1. Once you have gcc set up, download and unpack the latest xsltproc source archives from http: As of version 2. When set to zero, disables all of these extensions. You can use csltproc number of –stringparam options to pass stylesheet ssltproc values on the command line, in this case setting the parameter named use.
If you do not like using a docbok line interface, you can download the free tkxsltproc from http: For example, find and copy thefollowing files into C: DocBook Consulting Services available. Since Xalan-J requires a Java runtime environment, you might need to obtain or update your Java setup before Xalan will work.
Installing xsltproc on Windows.
In the current implementation, single-pass profiling is handled with customized versions of the DocBook stylesheets. 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.