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
This version of BLFS may not build or run
some packages properly if LFS or dependencies have been updated
since the most recent stable version of the System V
books.
Package Information
DocBook XML DTD and Schemas 5.0 Dependencies
Required
libxml2-2.15.3
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