docbook-xml-5.0

#### Beyond Linux® From Scratch (System V Edition) - Version r13.1-84

### Chapter 49. Extensible Markup Language (XML)

- Prev

  docbook-xml-4.5

- Next

  docbook-xsl-nons-1.79.2

- Up
- Home

# docbook-xml-5.0

## Introduction to DocBook XML DTD and Schemas 5.0

The DocBook XML DTD and Schemas-5.0 package contains document type definitions and schemas for verification of XML 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. In addition to providing a DTD, version 5 introduced the RelaxNG schema and Schematron rules, and is incompatible with previous versions of DocBook XML.

### 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/xml/5.0/docbook-5.0.zip

- Download MD5 sum: 2411c19ed4fb141f3fa3d389fae40736

- Download size: 820 KB

- Estimated disk space required: 6.2 MB

- Estimated build time: 0.1 SBU

### DocBook XML DTD and Schemas 5.0 Dependencies

#### Required

libxml2-2.15.4

## Installation of DocBook XML DTD and Schemas 5.0

### Note

The package source is distributed in `zip` format and you can use the python3 -m zipfile -e `<name>`.zip . command to extract it.

Install DocBook XML DTD and Schemas by running the following commands as the `root` user:

    install -vdm755 /usr/share/xml/docbook/xml-5.0 &&
    cp -rv catalog.xml dtd rng sch xsd /usr/share/xml/docbook/xml-5.0

Create (or update) and populate the system XML catalog (`/etc/xml/catalog`) by running the following commands as the `root` user:

    if [ ! -e /etc/xml/catalog ]; then
        install -v -d -m755 /etc/xml &&
        xmlcatalog --noout --create /etc/xml/catalog
    fi &&

    xmlcatalog --noout --add "delegatePublic"             \
      "-//OASIS//DTD DocBook XML 5.0//EN                " \
      "file:///usr/share/xml/docbook/xml-5.0/catalog.xml" \
      /etc/xml/catalog &&

    xmlcatalog --noout --add "delegateSystem"             \
      "http://docbook.org/xml/5.0/dtd/"                   \
      "file:///usr/share/xml/docbook/xml-5.0/catalog.xml" \
      /etc/xml/catalog &&

    xmlcatalog --noout --add "delegateURI"                \
      "http://docbook.org/xml/5.0"                        \
      "file:///usr/share/xml/docbook/xml-5.0/catalog.xml" \
      /etc/xml/catalog

## Configuring DocBook XML DTD and Schemas 5.0

### Config Files

`/etc/xml/catalog`

## Contents

Installed Files: DTD, RNC, RNG, SCH and XSD files
Installed Directories: /etc/xml and /usr/share/xml/docbook/xml-5.0

### Short Descriptions

`DTD files` | contain the DocBook 5.0 document type definitions which define the element types and the attribute lists that can be used in the corresponding `XML` files
`RNC, RNG, and SCH files` | contain the Docbook 5.0 RelaxNG, RelaxNG Compact, and Schematron schema definitions
`XSD files` | files contain DocBook-5.0 Schematron rules

- Prev

  docbook-xml-4.5

- Next

  docbook-xsl-nons-1.79.2

- Up
- Home