Introduction to DocBook SGML DTD

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.

本パッケージは LFS-8.0 において正しくビルドでき動作することが確認されています。

Package Information

DocBook SGML DTD Dependencies


sgml-common-0.6.3 and UnZip-6.0

User Notes:

Installation of DocBook SGML DTD



本パッケージのソースは zip 形式で提供されているため unzip が必要になります。 ビルドにあたっては、まずディレクトリを生成してそのディレクトリに入り、それから zip 解凍を行います。 こうしておけばパッケージインストール後に、ソースファイルを簡単に削除できるようになります。

Install DocBook SGML DTD by running the following commands:

sed -i -e '/ISO 8879/d' \
       -e '/gml/d'

This package does not come with a test suite.

Now, as the root user:

install -v -d /usr/share/sgml/docbook/sgml-dtd-4.5 &&
chown -R root:root . &&

install -v /usr/share/sgml/docbook/sgml-dtd-4.5/catalog &&
cp -v -af *.dtd *.mod *.dcl /usr/share/sgml/docbook/sgml-dtd-4.5 &&

install-catalog --add /etc/sgml/ \
    /usr/share/sgml/docbook/sgml-dtd-4.5/catalog &&

install-catalog --add /etc/sgml/ \

Command Explanations

sed -i -e '/ISO 8879/d' -e '/gml/d' This command removes the ENT definitions from the catalog file.

Configuring DocBook SGML DTD

Config Files


Configuration Information

The above installation script updates the catalog.

Using only the most current 4.x version of DocBook SGML DTD requires the following (perform as the root user):

cat >> /usr/share/sgml/docbook/sgml-dtd-4.5/catalog << "EOF"
  -- Begin Single Major Version catalog changes --

PUBLIC "-//OASIS//DTD DocBook V4.4//EN" "docbook.dtd"
PUBLIC "-//OASIS//DTD DocBook V4.3//EN" "docbook.dtd"
PUBLIC "-//OASIS//DTD DocBook V4.2//EN" "docbook.dtd"
PUBLIC "-//OASIS//DTD DocBook V4.1//EN" "docbook.dtd"
PUBLIC "-//OASIS//DTD DocBook V4.0//EN" "docbook.dtd"

  -- End Single Major Version catalog changes --


Installed Programs: None
Installed Libraries: None
Installed Files: SGML DTD and MOD files
Installed Directory: /usr/share/sgml/docbook/sgml-dtd-4.5

Short Descriptions

SGML DTD files

contain a document type definition which defines the element types and the attribute lists that can be used in the corresponding SGML files.

SGML MOD files

contain components of the document type definition that are sourced into the DTD files.

最終更新日: 2017-02-15 12:04:01 +0900