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.1 platform.

Package Information

libxslt Dependencies





libgcrypt-1.8.0 and Python-2.7.13



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

User Notes:

Installation of libxslt

Install libxslt by running the following commands:

sed -i '/#include <xlocale.h>/d' libxslt/xsltlocale.h &&
./configure --prefix=/usr --disable-static            &&

To test the results, issue: make check.

Now, as the root user:

make install

Command Explanations

sed -i '/#include <xlocale.h>/d' libxslt/xsltlocale.h: with glibc-2.26, xlocale.h is no-longer installed, any package using it should use locale.h but libxslt references that on the previous line of the header, so just delete this.

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


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

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 2017-08-19 20:04:07 -0500