[52d29f7] | 1 | <?xml version="1.0" encoding="ISO-8859-1"?>
|
---|
[6732c094] | 2 | <!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN"
|
---|
| 3 | "http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd" [
|
---|
[52d29f7] | 4 | <!ENTITY % general-entities SYSTEM "../../general.ent">
|
---|
| 5 | %general-entities;
|
---|
| 6 |
|
---|
[21755bc] | 7 | <!ENTITY libxslt-download-http "http://xmlsoft.org/sources/libxslt-&libxslt-version;.tar.gz">
|
---|
[dd58fed6] | 8 | <!ENTITY libxslt-download-ftp "ftp://xmlsoft.org/libxslt/libxslt-&libxslt-version;.tar.gz">
|
---|
[df013c7f] | 9 | <!ENTITY libxslt-md5sum "db8765c8d076f1b6caafd9f2542a304a">
|
---|
| 10 | <!ENTITY libxslt-size "3.4 MB">
|
---|
[177d84bd] | 11 | <!ENTITY libxslt-buildsize "36 MB (with tests)">
|
---|
| 12 | <!ENTITY libxslt-time "0.3 SBU (with tests)">
|
---|
[52d29f7] | 13 | ]>
|
---|
| 14 |
|
---|
[f45b1953] | 15 | <sect1 id="libxslt" xreflabel="libxslt-&libxslt-version;">
|
---|
[6f0f00c] | 16 | <?dbhtml filename="libxslt.html"?>
|
---|
[8e75f8b9] | 17 |
|
---|
[6f0f00c] | 18 | <sect1info>
|
---|
| 19 | <date>$Date$</date>
|
---|
| 20 | </sect1info>
|
---|
[8e75f8b9] | 21 |
|
---|
[02a9980] | 22 | <title>libxslt-&libxslt-version;</title>
|
---|
[8e75f8b9] | 23 |
|
---|
[6f0f00c] | 24 | <indexterm zone="libxslt">
|
---|
[8180b89] | 25 | <primary sortas="a-libxslt">libxslt</primary>
|
---|
[6f0f00c] | 26 | </indexterm>
|
---|
| 27 |
|
---|
| 28 | <sect2 role="package">
|
---|
[02a9980] | 29 | <title>Introduction to libxslt</title>
|
---|
[8e75f8b9] | 30 |
|
---|
[8180b89] | 31 | <para>
|
---|
| 32 | The <application>libxslt</application> package contains
|
---|
| 33 | XSLT libraries used for extending <filename
|
---|
| 34 | class="libraryfile">libxml2</filename> libraries to
|
---|
| 35 | support XSLT files.
|
---|
| 36 | </para>
|
---|
[8e75f8b9] | 37 |
|
---|
[a7903332] | 38 | &lfs110a_checked;
|
---|
[fd91fea] | 39 |
|
---|
[6f0f00c] | 40 | <bridgehead renderas="sect3">Package Information</bridgehead>
|
---|
| 41 | <itemizedlist spacing="compact">
|
---|
| 42 | <listitem>
|
---|
[8180b89] | 43 | <para>
|
---|
| 44 | Download (HTTP): <ulink url="&libxslt-download-http;"/>
|
---|
| 45 | </para>
|
---|
[6f0f00c] | 46 | </listitem>
|
---|
| 47 | <listitem>
|
---|
[8180b89] | 48 | <para>
|
---|
| 49 | Download (FTP): <ulink url="&libxslt-download-ftp;"/>
|
---|
| 50 | </para>
|
---|
[6f0f00c] | 51 | </listitem>
|
---|
| 52 | <listitem>
|
---|
[8180b89] | 53 | <para>
|
---|
| 54 | Download MD5 sum: &libxslt-md5sum;
|
---|
| 55 | </para>
|
---|
[6f0f00c] | 56 | </listitem>
|
---|
| 57 | <listitem>
|
---|
[8180b89] | 58 | <para>
|
---|
| 59 | Download size: &libxslt-size;
|
---|
| 60 | </para>
|
---|
[6f0f00c] | 61 | </listitem>
|
---|
| 62 | <listitem>
|
---|
[8180b89] | 63 | <para>
|
---|
| 64 | Estimated disk space required: &libxslt-buildsize;
|
---|
| 65 | </para>
|
---|
[6f0f00c] | 66 | </listitem>
|
---|
| 67 | <listitem>
|
---|
[8180b89] | 68 | <para>
|
---|
| 69 | Estimated build time: &libxslt-time;
|
---|
| 70 | </para>
|
---|
[6f0f00c] | 71 | </listitem>
|
---|
| 72 | </itemizedlist>
|
---|
[df013c7f] | 73 | <!--
|
---|
[0ea2a4a] | 74 | <bridgehead renderas="sect3">Additional Downloads</bridgehead>
|
---|
| 75 | <itemizedlist spacing="compact">
|
---|
| 76 | <listitem>
|
---|
| 77 | <para>
|
---|
| 78 | Required patch:
|
---|
| 79 | <ulink url="&patch-root;/libxslt-&libxslt-version;-security_fix-1.patch"/>
|
---|
| 80 | </para>
|
---|
| 81 | </listitem>
|
---|
| 82 | </itemizedlist>
|
---|
[df013c7f] | 83 | -->
|
---|
[02a9980] | 84 | <bridgehead renderas="sect3">libxslt Dependencies</bridgehead>
|
---|
[8e75f8b9] | 85 |
|
---|
[6f0f00c] | 86 | <bridgehead renderas="sect4">Required</bridgehead>
|
---|
[8180b89] | 87 | <para role="required">
|
---|
| 88 | <xref linkend="libxml2"/>
|
---|
| 89 | </para>
|
---|
[8e75f8b9] | 90 |
|
---|
[5cfcafe] | 91 | <bridgehead renderas="sect4">Recommended</bridgehead>
|
---|
| 92 | <para role="recommended">
|
---|
| 93 | <xref linkend="DocBook"/> and
|
---|
| 94 | <xref linkend="docbook-xsl"/>
|
---|
| 95 | </para>
|
---|
| 96 |
|
---|
| 97 | <note>
|
---|
| 98 | <para>
|
---|
| 99 | Although it is not a direct dependency, many applications
|
---|
| 100 | using <application>libxslt</application> will expect
|
---|
| 101 | <xref linkend="DocBook"/> and <xref linkend="docbook-xsl"/>
|
---|
| 102 | to be present.
|
---|
| 103 | </para>
|
---|
| 104 | </note>
|
---|
| 105 |
|
---|
[d378cf05] | 106 | <bridgehead renderas="sect4">Optional</bridgehead>
|
---|
| 107 | <para role="optional">
|
---|
[fb4fe20] | 108 | <xref linkend="libgcrypt"/> and
|
---|
[cd964c8] | 109 | <xref linkend="libxml2py2"/>
|
---|
[3979b674] | 110 | <!-- Seems to be used for tests -->
|
---|
[cd964c8] | 111 | <note><simpara>The <xref role="nodep" linkend="libxml2py2"/>
|
---|
| 112 | dependency is only appropriate if the <application>Python2</application>
|
---|
| 113 | module for this package is needed. The
|
---|
| 114 | libxslt <application>Python2</application> module is not needed for
|
---|
[fb4fe20] | 115 | any package in BLFS but various non-BLFS packages may install
|
---|
[cd964c8] | 116 | <application>Python2</application> modules which reference it.
|
---|
[d378cf05] | 117 | </simpara></note>
|
---|
| 118 | </para>
|
---|
| 119 |
|
---|
[1039de3] | 120 | <para condition="html" role="usernotes">User Notes:
|
---|
[8180b89] | 121 | <ulink url="&blfs-wiki;/libxslt"/>
|
---|
| 122 | </para>
|
---|
[6f0f00c] | 123 | </sect2>
|
---|
[8e75f8b9] | 124 |
|
---|
[6f0f00c] | 125 | <sect2 role="installation">
|
---|
[02a9980] | 126 | <title>Installation of libxslt</title>
|
---|
[df013c7f] | 127 | <!--
|
---|
[0ea2a4a] | 128 | <para>
|
---|
| 129 | First, install a security patch to fix a security framework bypass:
|
---|
| 130 | </para>
|
---|
| 131 |
|
---|
| 132 | <screen><userinput remap="pre">patch -Np1 -i ../libxslt-&libxslt-version;-security_fix-1.patch</userinput></screen>
|
---|
[df013c7f] | 133 | -->
|
---|
[8180b89] | 134 | <para>
|
---|
| 135 | Install <application>libxslt</application> by running the following
|
---|
| 136 | commands:
|
---|
| 137 | </para>
|
---|
[6f0f00c] | 138 |
|
---|
[29e5e6e] | 139 | <screen><userinput>sed -i s/3000/5000/ libxslt/transform.c doc/xsltproc.{1,xml} &&
|
---|
[4dbc40bb] | 140 | sed -i -r '/max(Parser)?Depth/d' ./tests/fuzz/fuzz.c &&
|
---|
[3979b674] | 141 | ./configure --prefix=/usr --disable-static --without-python &&
|
---|
[6f0f00c] | 142 | make</userinput></screen>
|
---|
[8e75f8b9] | 143 |
|
---|
[f0bedadb] | 144 | <para>
|
---|
| 145 | A shipped man page is glitched. If the recommended dependencies are
|
---|
| 146 | installed, regenerate it by running the following commands:
|
---|
[eed90c8] | 147 | </para>
|
---|
[f0bedadb] | 148 |
|
---|
| 149 | <screen><userinput>sed -e 's@http://cdn.docbook.org/release/xsl@https://cdn.docbook.org/release/xsl-nons@' \
|
---|
| 150 | -e 's@\$Date\$@31 October 2019@' -i doc/xsltproc.xml &&
|
---|
| 151 | xsltproc/xsltproc --nonet doc/xsltproc.xml -o doc/xsltproc.1</userinput></screen>
|
---|
| 152 |
|
---|
[8180b89] | 153 | <para>
|
---|
| 154 | To test the results, issue: <command>make check</command>.
|
---|
| 155 | </para>
|
---|
[8e75f8b9] | 156 |
|
---|
[8180b89] | 157 | <para>
|
---|
| 158 | Now, as the <systemitem class="username">root</systemitem> user:
|
---|
| 159 | </para>
|
---|
[8e75f8b9] | 160 |
|
---|
[6f0f00c] | 161 | <screen role="root"><userinput>make install</userinput></screen>
|
---|
[8e75f8b9] | 162 |
|
---|
[6f0f00c] | 163 | </sect2>
|
---|
[8e75f8b9] | 164 |
|
---|
[8180b89] | 165 | <sect2 role="commands">
|
---|
| 166 | <title>Command Explanations</title>
|
---|
| 167 |
|
---|
[ba3bd456] | 168 | <para>
|
---|
| 169 | <command>sed -i s/3000/5000/ ...</command>: this increases the recursion
|
---|
| 170 | limit in libxslt. This is needed by some packages for their documentation.
|
---|
| 171 | </para>
|
---|
| 172 |
|
---|
[4dbc40bb] | 173 | <para>
|
---|
| 174 | <command>sed -i -r '/max(Parser)?Depth/d' ...</command>: this works
|
---|
| 175 | around an issue running test suite of libxslt with libxml-2.9.12.
|
---|
| 176 | </para>
|
---|
| 177 |
|
---|
[3979b674] | 178 | <para>
|
---|
| 179 | <parameter>--without-python</parameter>: This parameter disables the libxslt
|
---|
| 180 | python module since it does not support Python3. If you wish to enable
|
---|
| 181 | this module, make sure that <xref role="nodep" linkend="libxml2py2"/> is
|
---|
| 182 | installed, and remove this parameter.
|
---|
| 183 | </para>
|
---|
| 184 |
|
---|
[8180b89] | 185 | <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
|
---|
| 186 | href="../../xincludes/static-libraries.xml"/>
|
---|
| 187 |
|
---|
| 188 | </sect2>
|
---|
| 189 |
|
---|
[6f0f00c] | 190 | <sect2 role="content">
|
---|
| 191 | <title>Contents</title>
|
---|
| 192 |
|
---|
| 193 | <segmentedlist>
|
---|
| 194 | <segtitle>Installed Programs</segtitle>
|
---|
| 195 | <segtitle>Installed Libraries</segtitle>
|
---|
| 196 | <segtitle>Installed Directories</segtitle>
|
---|
[8e75f8b9] | 197 |
|
---|
[6f0f00c] | 198 | <seglistitem>
|
---|
[8180b89] | 199 | <seg>
|
---|
| 200 | xslt-config and xsltproc
|
---|
| 201 | </seg>
|
---|
| 202 | <seg>
|
---|
| 203 | libexslt.so, libxslt.so and optionally, libxsltmod.so
|
---|
[6c6f393] | 204 | <application>Python</application> module
|
---|
[8180b89] | 205 | </seg>
|
---|
| 206 | <seg>
|
---|
[f18f873] | 207 | /usr/include/libexslt,
|
---|
| 208 | /usr/include/libxslt,
|
---|
| 209 | /usr/lib/libxslt-plugins,
|
---|
| 210 | /usr/share/doc/libxslt-&libxslt-version;, and
|
---|
| 211 | /usr/share/doc/libxslt-python-&libxslt-version;</seg>
|
---|
[6f0f00c] | 212 | </seglistitem>
|
---|
| 213 | </segmentedlist>
|
---|
[8e75f8b9] | 214 |
|
---|
[6f0f00c] | 215 | <variablelist>
|
---|
| 216 | <bridgehead renderas="sect3">Short Descriptions</bridgehead>
|
---|
| 217 | <?dbfo list-presentation="list"?>
|
---|
| 218 | <?dbhtml list-presentation="table"?>
|
---|
[8e75f8b9] | 219 |
|
---|
[6f0f00c] | 220 | <varlistentry id="xslt-config">
|
---|
| 221 | <term><command>xslt-config</command></term>
|
---|
| 222 | <listitem>
|
---|
[8180b89] | 223 | <para>
|
---|
| 224 | is used to find out the pre-processor, linking and
|
---|
| 225 | compiling flags necessary to use the <application>libxslt</application>
|
---|
[4c24eb0a] | 226 | libraries in 3rd-party programs
|
---|
[8180b89] | 227 | </para>
|
---|
[6f0f00c] | 228 | <indexterm zone="libxslt xslt-config">
|
---|
| 229 | <primary sortas="b-xslt-config">xslt-config</primary>
|
---|
| 230 | </indexterm>
|
---|
| 231 | </listitem>
|
---|
| 232 | </varlistentry>
|
---|
[8e75f8b9] | 233 |
|
---|
[6f0f00c] | 234 | <varlistentry id="xsltproc">
|
---|
| 235 | <term><command>xsltproc</command></term>
|
---|
| 236 | <listitem>
|
---|
[8180b89] | 237 | <para>
|
---|
[4c24eb0a] | 238 | is used to apply XSLT stylesheets to XML documents
|
---|
[8180b89] | 239 | </para>
|
---|
[6f0f00c] | 240 | <indexterm zone="libxslt xsltproc">
|
---|
| 241 | <primary sortas="b-xsltproc">xsltproc</primary>
|
---|
| 242 | </indexterm>
|
---|
| 243 | </listitem>
|
---|
| 244 | </varlistentry>
|
---|
[8e75f8b9] | 245 |
|
---|
[8180b89] | 246 | <varlistentry id="libexslt">
|
---|
| 247 | <term><filename class="libraryfile">libexslt.so</filename></term>
|
---|
[6f0f00c] | 248 | <listitem>
|
---|
[8180b89] | 249 | <para>
|
---|
[4c24eb0a] | 250 | is used to provide extensions to XSLT functions
|
---|
[8180b89] | 251 | </para>
|
---|
| 252 | <indexterm zone="libxslt libexslt">
|
---|
| 253 | <primary sortas="c-libexslt">libexslt.so</primary>
|
---|
[6f0f00c] | 254 | </indexterm>
|
---|
| 255 | </listitem>
|
---|
| 256 | </varlistentry>
|
---|
[8e75f8b9] | 257 |
|
---|
[8180b89] | 258 | <varlistentry id="libxslt-lib">
|
---|
| 259 | <term><filename class="libraryfile">libxslt.so</filename></term>
|
---|
[6f0f00c] | 260 | <listitem>
|
---|
[8180b89] | 261 | <para>
|
---|
| 262 | provides extensions to the
|
---|
| 263 | <filename class="libraryfile">libxml2</filename>
|
---|
[4c24eb0a] | 264 | libraries to parse files that use the XSLT format
|
---|
[8180b89] | 265 | </para>
|
---|
| 266 | <indexterm zone="libxslt libxslt-lib">
|
---|
| 267 | <primary sortas="c-libxslt">libxslt.so</primary>
|
---|
[6f0f00c] | 268 | </indexterm>
|
---|
| 269 | </listitem>
|
---|
| 270 | </varlistentry>
|
---|
[8e75f8b9] | 271 |
|
---|
[6f0f00c] | 272 | </variablelist>
|
---|
| 273 |
|
---|
| 274 | </sect2>
|
---|
[f45b1953] | 275 |
|
---|
| 276 | </sect1>
|
---|