Introduction to libxslt

The libxslt package contains XSLT libraries used for extending libxml2 libraries to support XSLT files.

This package is known to build and work properly using an LFS-8.3 platform.

Package Information

libxslt Dependencies






Although it is not a direct dependency, many applications using libxslt will expect docbook-xml-4.5 and docbook-xsl-1.79.2 to be present.


libgcrypt-1.8.3, libxml2-2.9.8 (for Python2)



The libxml2-2.9.8 (for Python2) dependency is only appropriate if the Python2 module for this package is needed. The libxslt Python2 module is not needed for any package in BLFS but various packages may install Python2 modules which reference it.

User Notes:

Installation of libxslt

Install libxslt by running the following commands:

sed -i s/3000/5000/ libxslt/transform.c doc/xsltproc.{1,xml} &&
./configure --prefix=/usr --disable-static                   &&

To test the results, issue: make check.

Now, as the root user:

make install

Command Explanations

sed -i s/3000/5000/ ...: this increases the recursion limit in libxslt. This is needed by some packages for their documentation.

--disable-static: This switch prevents installation of static versions of the libraries.


Installed Programs: xslt-config and xsltproc
Installed Libraries:, and optionally, Python module
Installed Directories: /usr/include/libexslt, /usr/include/libxslt, /usr/lib/libxslt-plugins, /usr/share/doc/libxslt-1.1.32, and /usr/share/doc/libxslt-python-1.1.32

Short Descriptions


is used to find out the pre-processor, linking and compiling flags necessary to use the libxslt libraries in 3rd-party programs.


is used to apply XSLT stylesheets to XML documents.

is used to provide extensions to XSLT functions.

provides extensions to the libxml2 libraries to parse files that use the XSLT format.

Last updated on 2018-08-14 19:28:50 -0700