Beyond Linux From Scratch: Version 5.0-PRE1 | ||
---|---|---|
Prev | Chapter 47. Standard Generalized Markup Language (SGML) | Next |
The DocBook SGML DTD package contains document type definitions for verification of SGML data files against the DocBook rule set. These are useful for structuring books and software documentation to a standard allowing you to utilize transformations already written for that standard.
Download (HTTP): http://www.docbook.org/sgml/4.2/docbook-4.2.zip
Download (FTP): ftp://ftp.gtlib.cc.gatech.edu/pub/rocklinux/ROCK-1.5/ext-archive/docbook/docbook-4.2.zip
Download size: 68 KB
Estimated Disk space required: 376 KB
Estimated build time: 0.01 SBU
Install DocBook SGML DTD by running the following commands:
cp docbook.cat docbook.cat.orig && sed -e '/ISO 8879/d' docbook.cat.orig > docbook.cat && cp docbook.cat docbook.cat.orig && sed -e '/gml/d' docbook.cat.orig > docbook.cat && install -d /usr/share/sgml/docbook/sgml-dtd-4.2 && chown -R root:root . && chmod -R 755 . && install docbook.cat /usr/share/sgml/docbook/sgml-dtd-4.2/catalog && cp -af *.dtd *.mod *.dcl /usr/share/sgml/docbook/sgml-dtd-4.2 && install-catalog --add /etc/sgml/sgml-docbook-dtd-4.2.cat \ /usr/share/sgml/docbook/sgml-dtd-4.2/catalog && install-catalog --add /etc/sgml/sgml-docbook-dtd-4.2.cat \ /etc/sgml/sgml-docbook.cat |
cp docbook.cat docbook.cat.orig sed -e '/ISO 8879/d' docbook.cat.orig > docbook.cat cp docbook.cat docbook.cat.orig sed -e '/gml/d' docbook.cat.orig > docbook.cat |
The above installation script updates the catalog.
Using only the most current 4.x version of DocBook SGML DTD requires the following:
cat >> /usr/share/sgml/docbook/sgml-dtd-4.2/catalog << "EOF" -- Begin Single Major Version catalog changes -- PUBLIC "-//OASIS//DTD DocBook V4.1//EN" "docbook.dtd" PUBLIC "-//OASIS//DTD DocBook V4.0//EN" "docbook.dtd" -- End Single Major Version catalog changes -- EOF |