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):||15 September 2010|
|PDF File Size:||16.24 Mb|
|ePub File Size:||11.19 Mb|
|Price:||Free* [*Free Regsitration Required]|
Most people preferred the newer versions, but they required taking some extra steps to make sure the bundled version was not being used instead. However, there is no harm in turning them on.
If you are running Java 1. Either one will work for DocBook processing. The Java runtime system is available for download from Sun Microsystems, Inc.
Bibliographies Bibliography entries Bibliography database Bibliography database catalog entry Citing bibliographic entries Numbered bibliography entries Sorting a bibliography Customizing bibliography output ISO bibliography standard Bibliography title RefDB bibliographic database Chapter It is under active development, as are several of the standards that it implements.
The options will fail if the xercesImpl. Unpack the distribution archives the version numbers will be different from this example: You set the conditions for selecting marked elements by passing stylesheet parameters to the XSLT processor.
You should check the details with each product that is described here, as the steps may change over time.
Re: [docbook-apps] unresolved xincludes with xsltproc
You can download precompiled versions for Windows from Igor Zlatkovic’s website: Here javahome is the directory where the runtime software is installed which is the top-level directory of the Java 2 Runtime Environment or the jre directory in the Java 2 SDK. Currently Saxon is xsktproc in four packages:. There is a version of xsltproc for Cygwin.
To use any of the extensions, set the use. It accepts the same profiling parameters as the single-pass profiling stylesheets.
Lists List titles List spacing List vertical spacing List horizontal spacing itemizedlist options Docook bullet symbol Print properties for itemizedlist orderedlist options Different numbering style Number continuation List starting number Print properties for orderedlist variablelist options Multiple term elements Variable list formatting in print Variable list formatting in HTML simplelist options Chapter Special DocBook features Chapter Xalan is distributed as a zip file, so you need to unzip it into some suitable location.
The XSLT C library for GNOME
The following is an example docboo how to use it. 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. It is probably the most commonly used Saxon package, and is the version used in the examples in this book. It is pretty easy to compile xslproc if you use the GNU compiler.
It reports on the Java environment and the version of Xalan. Your version of Java determines where the main xalan. Installing an XSLT processor.
If your document contains xref or link cross references, then you may need to use the two-pass method. For example, if you want to select elements whose xsltpeoc attribute os has the value linuxyou would set the stylesheet parameter profile.
The complete Cygwin collection of packages is big, so it might take a long time over a slow connection.
Install xsltproc and FOP to generate a PDF from a docbook document |
It is even available for Cygwin a Linux environment that runs on Windows. A separate stylesheet is available to perform just xsltprooc profiling step, without also applying the DocBook style templates.
The bin directory in the directory you unpacked Xsltprof into will contain the three files you need: It can be xslhproc temporary location because you can move the few files you really need to a new location. 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 That site will also provide you with detailed instructions for getting started with Xalan.
Java version numbering has evolved over the years.
Install xsltproc and FOP to generate a PDF from a docbook document
The following table lists past and current Java versions:. The output is xsltprox filtered version of your original XML document, with the profiling conditions applied so that some elements are excluded. Try the following command to see if you do:. You can also set any number of stylesheet parameters such as use.