docbook-4.5-dtd

#### Beyond Linux® From Scratch (systemd Edition) - Version r13.0-475

### Chapter 48. Standard Generalized Markup Language (SGML)

- Prev

  docbook-3.1-dtd

- Next

  OpenSP-1.5.2

- Up
- Home

# docbook-4.5-dtd

## Introduction to DocBook-4.5 SGML DTD

The DocBook-4.5 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.

### Note

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.

### Package Information

- Download (HTTP): https://archive.docbook.org/sgml/4.5/docbook-4.5.zip

- Download MD5 sum: 07c581f4bbcba6d3aac85360a19f95f7

- Download size: 70 KB

- Estimated disk space required: 784 KB

- Estimated build time: less than 0.1 SBU

### DocBook-4.5 SGML DTD Dependencies

#### Required

libarchive-3.8.7 and sgml-common-0.6.3

## Installation of DocBook-4.5 SGML DTD

### Note

The package source is distributed in `zip` format and requires unzip (actually a symlink to bsdunzip from libarchive). You should create a directory and change to that directory before unzipping the file to ease the removal of the source files after the package has been installed.

Install DocBook-4.5 SGML DTD by running the following commands:

    sed -i -e '/ISO 8879/d' \
           -e '/gml/d' docbook.cat

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 docbook.cat /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/sgml-docbook-dtd-4.5.cat \
        /usr/share/sgml/docbook/sgml-dtd-4.5/catalog &&

    install-catalog --add /etc/sgml/sgml-docbook-dtd-4.5.cat \
        /etc/sgml/sgml-docbook.cat

## Command Explanations

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

## Configuring DocBook-4.5 SGML DTD

### Config Files

`/etc/sgml/catalog`

### 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 --
    EOF

## Contents

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` | contains 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` | contains components of the document type definition that are sourced into the `DTD` files

- Prev

  docbook-3.1-dtd

- Next

  OpenSP-1.5.2

- Up
- Home