The DocBook XSL Stylesheets (Namespaced) package contains XSL stylesheets. These are useful for performing transformations on XML DocBook 5.0 files.
Development versions of BLFS may not build or run some packages properly if LFS or dependencies have been updated since the most recent stable versions of the books.
MD5 校验和:4a400f0264a19329c7f95f69e098744a
大小:23 MB
预计所需磁盘空间:49 MB
预计构建时间:小于 0.1 SBU
apache-ant-1.10.17 (to produce “webhelp” documents), libxslt-1.1.45 (or any other XSLT processor), to process Docbook documents, Ruby-4.0.6 (to utilize the “epub” stylesheets), Zip-3.0 (to produce “epub3” documents), and Saxon6 and Xerces2 Java (used with apache-ant-1.10.17 to produce “webhelp” documents)
First, fix a problem that causes stack overflows when doing recursion:
patch -Np1 -i ../docbook-xsl-1.79.2-stack_fix-1.patch
BLFS does not install the required packages to run the test suite and provide meaningful results.
Install DocBook XSL Stylesheets by
running the following commands as the root user:
install -v -m755 -d /usr/share/xml/docbook/xsl-stylesheets-1.79.2 &&
cp -v -R VERSION assembly common eclipse epub epub3 extensions fo \
highlighting html htmlhelp images javahelp lib manpages params \
profiling roundtrip slides template tests tools webhelp website \
xhtml xhtml-1_1 xhtml5 \
/usr/share/xml/docbook/xsl-stylesheets-1.79.2 &&
ln -s VERSION /usr/share/xml/docbook/xsl-stylesheets-1.79.2/VERSION.xsl
The documentation for this package is shared with its non-namespaced counterpart, the docbook-xsl-nons-1.79.2 package. Install the latter if you want the documentation.
Create (or append) and populate the XML catalog file using the
following commands as the root
user (both http and
https forms are used
because upstream have had both in their documentation):
(set -e
install -v -d -m755 /etc/xml
[ -e /etc/xml/catalog ] || xmlcatalog --noout --create /etc/xml/catalog
for uri in http{,s}://cdn.docbook.org/release/xsl/{1.79.2,current} \
http://docbook.sourceforge.net/release/xsl-ns/current; do
for rewrite in System URI; do
xmlcatalog --noout --add "rewrite$rewrite" \
"$uri" \
"/usr/share/xml/docbook/xsl-stylesheets-1.79.2" \
/etc/xml/catalog
done
done)