DocBook

file format

Uses your system voice; voice and rate in settings.

≈ 2 min read

Cite, export and learn8 citation formats · 8 exports · lesson and quiz

Names in other languages

  • EnglishDocBook
  • PolskiDocBook
  • PortuguêsDocBook
  • РусскийDocBook
  • skDocBook
  • 简体中文DocBook
  • 繁體中文DocBook
  • 中文DocBook
  • 한국어닥북

Article bodies are English and are not machine-translated. A name in another language is not a translation of the article.

DocBook is a semantic markup language for technical documentation. It was originally intended for writing technical documents related to computer hardware and software, but it can be used for any other sort of documentation.

As a semantic language, DocBook enables its users to create document content in a presentation-neutral form that captures the logical structure of the content; that content can then be published in a variety of formats, including HTML, XHTML, EPUB, PDF, man pages, WebHelp and HTML Help, without requiring users to make any changes to the source. In other words, when a document is written in DocBook format it becomes easily portable into other formats, rather than needing to be rewritten.

Very simple book Chapter 1 Hello world! I hope that your day is proceeding splendidly ! Chapter 2 Hello again, world!

Semantically, this document is a "book", with a "title", that contains two "chapters" each with their own "titles". Those "chapters" contain "paragraphs" that have text in them. The markup is fairly readable in English.

In more detail, the root element of the document is book . All DocBook elements are in an XML Namespace, so the root element has an xmlns attribute to set the current namespace. Also, the root element of a DocBook document must have a version that specifies the version of the format that the document is built on.

(XML documents can include elements from multiple namespaces at once, like the id attributes in the example.) A book element must contain a title , or an info element containing a title . This must be before any child structural elements.

Following the title are the structural children, in this case, two chapter elements. Each of these must have a title . They contain para block elements, which can contain free text and other inline elements like the emphasis in the second paragraph of the first chapter.

DocBook: The Definitive Guide, 1st edition, v. 2.0.6 - Fully bookmarked PDF of the Guide for DocBook 3.x and 4.x.

Text derived from https://en.wikipedia.org/w/index.php?oldid=1378749775 under CC BY-SA 4.0; modifications have been made.

Provenance

snapshot docbook-091313-9a3438b14c4d0a1c · hash 9a3438b14c4d0a1cb4c8906b16dd1e5e03b95a5c7abe84a8e04917bf42fc22b4 · captured 2026-10-05 · ledger · version history

Cite this page as: encyclopegia.org, “DocBook”, snapshot docbook-091313-9a3438b14c4d0a1c. https://encyclopegia.org/a/docbook

Sources cited in this revision

10 named source(s) extracted from the cited revision. A source with no author is shown by its publication; nothing is invented.