DocBook-XML-5.0

From CBLFS
Jump to: navigation, search
Download Source: http://www.docbook.org/xml/5.0/docbook-5.0.zip

Contents

Introduction to DocBook-XML-5.0

DocBook is general purpose XML and SGML document type particularly well suited to books and papers about computer hardware and software

Project Homepage: http://www.docbook.org/

Dependencies

Required

Caution.png

Note

This package is distributed as a Zip, you will need Unzip or similar to extract it.
unzip docbook-5.0.zip
cd docbook-5.0

Non-Multilib or Multilib

Package Installation

Install the Schema with the following commands:

install -dv -m755 /usr/share/xml/docbook/schema/5.0/{dtd,rng,sch,xsd}/
install -v -m644 dtd/* /usr/share/xml/docbook/schema/5.0/dtd/
install -v -m644 rng/* /usr/share/xml/docbook/schema/5.0/rng/
install -v -m644 sch/* /usr/share/xml/docbook/schema/5.0/sch/
install -v -m644 xsd/* /usr/share/xml/docbook/schema/5.0/xsd/

This package comes with a stylesheet to convert DocBook v4 documents to v5. Install it with the following commands:

install -dv -m755 /usr/share/xml/docbook/stylesheet/docbook5/
install -v -m644 tools/* /usr/share/xml/docbook/stylesheet/docbook5/

Install the documentation with the following commands:

install -dv -m755 /usr/share/doc/docbook-xml-5.0/{,images/}
install -v -m644 README VERSION ChangeLog /usr/share/doc/docbook-xml-5.0/
install -v -m644 docs/*.{html,pdf,xml} /usr/share/doc/docbook-xml-5.0/
install -v -m644 docs/images/* /usr/share/doc/docbook-xml-5.0/images/

Local Catalog

Create a local catalog for this package:

xmlcatalog --noout --create /usr/share/xml/docbook/schema/5.0/catalog.xml &&
xmlcatalog --noout --add "public" \
           "-//OASIS//DTD DocBook XML 5.0//EN" \
           "./dtd/docbook.dtd" \
           /usr/share/xml/docbook/schema/5.0/catalog.xml &&
xmlcatalog --noout --add "system" \
           "http://www.oasis-open.org/docbook/xml/5.0/dtd/docbook.dtd" \
           "./dtd/docbook.dtd" \
           /usr/share/xml/docbook/schema/5.0/catalog.xml &&
xmlcatalog --noout --add "system" \
           "http://docbook.org/xml/5.0/dtd/docbook.dtd" \
           "./dtd/docbook.dtd" \
           /usr/share/xml/docbook/schema/5.0/catalog.xml &&
xmlcatalog --noout --add "uri" \
           "http://www.oasis-open.org/docbook/xml/5.0/rng/docbook.rng" \
           "./rng/docbook.rng" \
           /usr/share/xml/docbook/schema/5.0/catalog.xml &&
xmlcatalog --noout --add "uri" \
           "http://docbook.org/xml/5.0/rng/docbook.rng" \
           "./rng/docbook.rng" \
           /usr/share/xml/docbook/schema/5.0/catalog.xml &&
xmlcatalog --noout --add "uri" \
           "http://www.oasis-open.org/docbook/xml/5.0/rng/docbookxi.rng" \
           "./rng/docbookxi.rng" \
           /usr/share/xml/docbook/schema/5.0/catalog.xml &&
xmlcatalog --noout --add "uri" \
           "http://docbook.org/xml/5.0/rng/docbookxi.rng" \
           "./rng/docbookxi.rng" \
           /usr/share/xml/docbook/schema/5.0/catalog.xml &&
xmlcatalog --noout --add "uri" \
           "http://www.oasis-open.org/docbook/xml/5.0/rng/docbook.rnc" \
           "./rng/docbook.rnc" \
           /usr/share/xml/docbook/schema/5.0/catalog.xml &&
xmlcatalog --noout --add "uri" \
           "http://docbook.org/xml/5.0/rng/docbook.rnc" \
           "./rng/docbook.rnc" \
           /usr/share/xml/docbook/schema/5.0/catalog.xml &&
xmlcatalog --noout --add "uri" \
           "http://www.oasis-open.org/docbook/xml/5.0/rng/docbookxi.rnc" \
           "./rng/docbookxi.rnc" \
           /usr/share/xml/docbook/schema/5.0/catalog.xml &&
xmlcatalog --noout --add "uri" \
           "http://docbook.org/xml/5.0/rng/docbookxi.rnc" \
           "./rng/docbookxi.rnc" \
           /usr/share/xml/docbook/schema/5.0/catalog.xml &&
xmlcatalog --noout --add "uri" \
           "http://www.oasis-open.org/docbook/xml/5.0/xsd/docbook.xsd" \
           "./xsd/docbook.xsd" \
           /usr/share/xml/docbook/schema/5.0/catalog.xml &&
xmlcatalog --noout --add "uri" \
           "http://docbook.org/xml/5.0/xsd/docbook.xsd" \
           "./xsd/docbook.xsd" \
           /usr/share/xml/docbook/schema/5.0/catalog.xml &&
xmlcatalog --noout --add "uri" \
           "http://www.oasis-open.org/docbook/xml/5.0/xsd/docbookxi.xsd" \
           "./xsd/docbookxi.xsd" \
           /usr/share/xml/docbook/schema/5.0/catalog.xml &&
xmlcatalog --noout --add "uri" \
           "http://docbook.org/xml/5.0/xsd/docbookxi.xsd" \
           "./xsd/docbookxi.xsd" \
           /usr/share/xml/docbook/schema/5.0/catalog.xml &&
xmlcatalog --noout --add "uri" \
           "http://www.oasis-open.org/docbook/xml/5.0/xsd/xi.xsd" \
           "./xsd/xi.xsd" \
           /usr/share/xml/docbook/schema/5.0/catalog.xml &&
xmlcatalog --noout --add "uri" \
           "http://docbook.org/xml/5.0/xsd/xi.xsd" \
           "./xsd/xi.xsd" \
           /usr/share/xml/docbook/schema/5.0/catalog.xml &&
xmlcatalog --noout --add "uri" \
           "http://www.oasis-open.org/docbook/xml/5.0/xsd/xlink.xsd" \
           "./xsd/xlink.xsd" \
           /usr/share/xml/docbook/schema/5.0/catalog.xml &&
xmlcatalog --noout --add "uri" \
           "http://docbook.org/xml/5.0/xsd/xlink.xsd" \
           "./xsd/xlink.xsd" \
           /usr/share/xml/docbook/schema/5.0/catalog.xml &&
xmlcatalog --noout --add "uri" \
           "http://www.oasis-open.org/docbook/xml/5.0/xsd/xml.xsd" \
           "./xsd/xml.xsd" \
           /usr/share/xml/docbook/schema/5.0/catalog.xml &&
xmlcatalog --noout --add "uri" \
           "http://docbook.org/xml/5.0/xsd/xml.xsd" \
           "./xsd/xml.xsd" \
           /usr/share/xml/docbook/schema/5.0/catalog.xml &&
xmlcatalog --noout --add "uri" \
           "http://www.oasis-open.org/docbook/xml/5.0/sch/docbook.sch" \
           "./sch/docbook.sch" \
           /usr/share/xml/docbook/schema/5.0/catalog.xml &&
xmlcatalog --noout --add "uri" \
           "http://docbook.org/xml/5.0/sch/docbook.sch" \
           "./sch/docbook.sch" \
           /usr/share/xml/docbook/schema/5.0/catalog.xml &&
xmlcatalog --noout --add "uri" \
           "http://www.oasis-open.org/docbook/xml/5.0/docbook.nvdl" \
           "./docbook.nvdl" \
           /usr/share/xml/docbook/schema/5.0/catalog.xml &&
xmlcatalog --noout --add "uri" \
           "http://docbook.org/xml/5.0/docbook.nvdl" \
           "./docbook.nvdl" \
           /usr/share/xml/docbook/schema/5.0/catalog.xml

Global Catalog

Create the global catalog if it doesn't exist:

install -dv -m755 /etc/xml
[ ! -f /etc/xml/catalog ] &&
    xmlcatalog --noout --create /etc/xml/catalog

Add entries into the global catalog for this package:

xmlcatalog --noout --add "delegatePublic" \
           "-//OASIS//DTD DocBook XML 5.0//EN" \
           "file:///usr/share/xml/docbook/schema/5.0/catalog.xml" \
           /etc/xml/catalog &&
xmlcatalog --noout --add "delegateSystem" \
           "http://www.oasis-open.org/docbook/xml/5.0" \
           "file:///usr/share/xml/docbook/schema/5.0/catalog.xml" \
           /etc/xml/catalog &&
xmlcatalog --noout --add "delegateSystem" \
           "http://docbook.org/xml/5.0" \
           "file:///usr/share/xml/docbook/schema/5.0/catalog.xml" \
           /etc/xml/catalog &&
xmlcatalog --noout --add "delegateURI" \
           "http://www.oasis-open.org/docbook/xml/5.0" \
           "file:///usr/share/xml/docbook/schema/5.0/catalog.xml" \
           /etc/xml/catalog &&
xmlcatalog --noout --add "delegateURI" \
           "http://docbook.org/xml/5.0" \
           "file:///usr/share/xml/docbook/schema/5.0/catalog.xml" \
           /etc/xml/catalog
Personal tools