DocBook XML DTD-4.2

Introduction to DocBook XML DTD

The DocBook XML DTD-4.2 package contains document type definitions 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.

Package information

DocBook XML DTD 4.2 dependencies

Installation of DocBook XML DTD

Install DocBook XML DTD by running the following commands:

install -d /usr/share/xml/docbook/xml-dtd-4.2 &&
cp -af docbook.cat *.dtd ent/ *.mod /usr/share/xml/docbook/xml-dtd-4.2 &&
if [ ! -e /etc/xml/catalog ]; then mkdir -p /etc/xml; xmlcatalog --noout \
--create /etc/xml/catalog; fi &&
if [ ! -e /etc/xml/docbook ]; then xmlcatalog --noout --create \
/etc/xml/docbook; fi &&
xmlcatalog --noout --add "public" \
"-//OASIS//ELEMENTS DocBook XML Information Pool V4.2//EN" \
"file:///usr/share/xml/docbook/xml-dtd-4.2/dbpoolx.mod" \
/etc/xml/docbook &&
xmlcatalog --noout --add "public" \
"-//OASIS//DTD DocBook XML V4.2//EN" \
"http://oasis-open.org/docbook/xml/4.2/docbookx.dtd" \
/etc/xml/docbook &&
xmlcatalog --noout --add "public" \
"-//OASIS//ENTITIES DocBook XML Character Entities V4.2//EN" \
"file:///usr/share/xml/docbook/xml-dtd-4.2/dbcentx.mod" \
/etc/xml/docbook &&
xmlcatalog --noout --add "public" \
"-//OASIS//ENTITIES DocBook XML Notations V4.2//EN" \
"file:///usr/share/xml/docbook/xml-dtd-4.2/dbnotnx.mod" \
/etc/xml/docbook &&
xmlcatalog --noout --add "public" \
"-//OASIS//ENTITIES DocBook XML Additional General Entities V4.2//EN" \
"file:///usr/share/xml/docbook/xml-dtd-4.2/dbgenent.mod" \
/etc/xml/docbook &&
xmlcatalog --noout --add "public" \
"-//OASIS//ELEMENTS DocBook XML Document Hierarchy V4.2//EN" \
"file:///usr/share/xml/docbook/xml-dtd-4.2/dbhierx.mod" \
/etc/xml/docbook &&
xmlcatalog --noout --add "public" \
"-//OASIS//DTD XML Exchange Table Model 19990315//EN" \
"file:///usr/share/xml/docbook/xml-dtd-4.2/soextblx.dtd" \
/etc/xml/docbook &&
xmlcatalog --noout --add "public" \
"-//OASIS//DTD DocBook XML CALS Table Model V4.2//EN" \
"file:///usr/share/xml/docbook/xml-dtd-4.2/calstblx.dtd" \
/etc/xml/docbook &&
xmlcatalog --noout --add "rewriteSystem" \
"http://www.oasis-open.org/docbook/xml/4.2" \
"file:///usr/share/xml/docbook/xml-dtd-4.2" \
/etc/xml/docbook &&
xmlcatalog --noout --add "rewriteURI" \
"http://www.oasis-open.org/docbook/xml/4.2" \
"file:///usr/share/xml/docbook/xml-dtd-4.2" \
/etc/xml/docbook &&
xmlcatalog --noout --add "delegatePublic" \
"-//OASIS//ENTITIES DocBook XML" \
"file:///etc/xml/docbook" /etc/xml/catalog &&
xmlcatalog --noout --add "delegatePublic" \
"-//OASIS//DTD DocBook XML" \
"file:///etc/xml/docbook" /etc/xml/catalog &&
xmlcatalog --noout --add "delegateSystem" \
"http://www.oasis-open.org/docbook/" \
"file:///etc/xml/docbook" /etc/xml/catalog &&
xmlcatalog --noout --add "delegateURI" \
"http://www.oasis-open.org/docbook/" \
"file:///etc/xml/docbook" /etc/xml/catalog

Configuring DocBook XML DTD

Config files

/etc/xml/catalog, /etc/xml/docbook

Configuration Information

The above installation script creates the files and updates the catalog. We need to make additional entries in order to process the BLFS book:

xmlcatalog --noout --add "delegateSystem" \
"/usr/share/docbook/" \
"file:///etc/xml/docbook" /etc/xml/catalog &&
xmlcatalog --noout --add "delegateURI" \
"/usr/share/docbook/" \
"file:///etc/xml/docbook" /etc/xml/catalog &&
xmlcatalog --noout --add "rewriteSystem" \
"/usr/share/docbook" \
"file:///usr/share/xml/docbook/xml-dtd-4.2" \
/etc/xml/docbook &&
xmlcatalog --noout --add "rewriteURI" \
"/usr/share/docbook" \
"file:///usr/share/xml/docbook/xml-dtd-4.2" \
/etc/xml/docbook

In order to install ScrollKeeper or to utilize DocBook XML DTD V4.2 when V4.1.2 is requested in the System Identifier, make the following entry:

xmlcatalog --noout --add "public" \
"-//OASIS//DTD DocBook XML V4.1.2//EN" \
"http://oasis-open.org/docbook/xml/4.1.2/docbookx.dtd" \
/etc/xml/docbook &&
xmlcatalog --noout --add "delegateSystem" \
"http://oasis-open.org/docbook/xml/4.1.2/" \
"file:///etc/xml/docbook" /etc/xml/catalog &&
xmlcatalog --noout --add "delegateURI" \
"http://oasis-open.org/docbook/xml/4.1.2/" \
"file:///etc/xml/docbook" /etc/xml/catalog &&
xmlcatalog --noout --add "rewriteSystem" \
"http://oasis-open.org/docbook/xml/4.1.2" \
"file:///usr/share/xml/docbook/xml-dtd-4.2" \
/etc/xml/docbook &&
xmlcatalog --noout --add "rewriteURI" \
"http://oasis-open.org/docbook/xml/4.1.2" \
"file:///usr/share/xml/docbook/xml-dtd-4.2" \
/etc/xml/docbook

Contents

The DocBook XML DTD package contains DTD files, MOD files and ENT files.

Description

DTD files

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

MOD files

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

ENT files

ENT files contain lists of named character entities allowed in HTML.