%general-entities; ]> $LastChangedBy$ $Date$ DocBook XSL Stylesheets-&docbook-xsl-version; Introduction to <application>DocBook <acronym>XSL</acronym> Stylesheets</application> The DocBook XSL Stylesheets package contains XSL stylesheets. These are useful for performing transformations on XML DocBook files. Package information Download (HTTP): Download (FTP): Download size: &docbook-xsl-size; Estimated disk space required: &docbook-xsl-buildsize; Estimated build time: &docbook-xsl-time; <application>DocBook <acronym>XSL</acronym> Stylesheets</application> dependencies Required Installation of <application>DocBook <acronym>XSL</acronym> Stylesheets</application> Install DocBook XSL Stylesheets by running the following commands: install -d /usr/share/xml/docbook/xsl-stylesheets-&docbook-xsl-version; && chown -R root:root . && cp -af INSTALL VERSION common eclipse extensions fo html htmlhelp \ images javahelp lib manpages params profiling template xhtml \ /usr/share/xml/docbook/xsl-stylesheets-&docbook-xsl-version; && install -d /usr/share/doc/xml && cp -af doc/* /usr/share/doc/xml && cd /usr/share/xml/docbook/xsl-stylesheets-&docbook-xsl-version; && sh INSTALL && if [ ! -f /etc/xml/catalog ]; then mkdir -p /etc/xml; xmlcatalog \ --noout --create /etc/xml/catalog; fi && if [ ! -e /etc/xml/docbook ]; then xmlcatalog --noout --create \ /etc/xml/docbook; fi && xmlcatalog --noout --add "rewriteSystem" \ "http://docbook.sourceforge.net/release/xsl/&docbook-xsl-version;" \ "/usr/share/xml/docbook/xsl-stylesheets-&docbook-xsl-version;" /etc/xml/catalog && xmlcatalog --noout --add "rewriteURI" \ "http://docbook.sourceforge.net/release/xsl/&docbook-xsl-version;" \ "/usr/share/xml/docbook/xsl-stylesheets-&docbook-xsl-version;" /etc/xml/catalog && xmlcatalog --noout --add "delegateSystem" \ "http://docbook.sourceforge.net/release/xsl/" \ "file:///etc/xml/docbook" /etc/xml/catalog && xmlcatalog --noout --add "delegateURI" \ "http://docbook.sourceforge.net/release/xsl/" \ "file:///etc/xml/docbook" /etc/xml/catalog Command explanations sh INSTALL: This command creates a local catalog for the XSL files. Configuring <application>DocBook <acronym>XSL</acronym> Stylesheets</application> Config files /etc/xml/catalog /etc/xml/catalog Configuration Information The system profile needs to be updated to utilize the new installed catalog. This can be done with the following command: cat > /etc/profile.d/xsl.sh << "EOF" # Set up Environment Variable for XSL Processing export XML_CATALOG_FILES="/usr/share/xml/docbook/\ xsl-stylesheets-&docbook-xsl-version;/catalog.xml /etc/xml/catalog" EOF The above installation script creates the files and updates the catalog. Some project stylesheets reference specific versions of XSL stylesheets, like BLFS, which needs the following additional commands. These commands can also serve as an example for using a single XSL version to support any hard coded versions, as needed. xmlcatalog --noout --add "rewriteSystem" \ "http://docbook.sourceforge.net/release/xsl/1.65.1" \ "/usr/share/xml/docbook/xsl-stylesheets-&docbook-xsl-version;" \ /etc/xml/catalog && xmlcatalog --noout --add "rewriteURI" \ "http://docbook.sourceforge.net/release/xsl/1.65.1" \ "/usr/share/xml/docbook/xsl-stylesheets-&docbook-xsl-version;" \ /etc/xml/catalog Alternatively, other versions can be installed in their own versioned directories and catalog entries made in the following form: xmlcatalog --noout --add "rewriteSystem" \ "http://docbook.sourceforge.net/release/xsl/[version]" \ "/usr/share/xml/docbook/xsl-stylesheets-[version]" \ /etc/xml/catalog && xmlcatalog --noout --add "rewriteURI" \ "http://docbook.sourceforge.net/release/xsl/[version]" \ "/usr/share/xml/docbook/xsl-stylesheets-[version]" \ /etc/xml/catalog For LFS 6.0, version 1.65.1 of this package should be installed. In addition, you need to make a symbolic link as described in the INSTALL file of LFS 6.0. cd /usr/share/xml/docbook/ && ln -s xsl-stylesheets-1.65.1 xsl-stylesheets-current Contents Installed Files Installed Directories XSL style sheets for HTML and FO. /usr/share/xml/docbook/xsl-stylesheets-&docbook-xsl-version; and /usr/share/doc/xml