Sample Document

  • there are around 400 elements in DocBook

  • you do not have to know all of them to use DocBook

<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE book PUBLIC "-//OASIS//DTD DocBook XML V4.4//EN" "http://www.oasis-open.org/docbook/xml/4.4/docbookx.dtd">
<book lang="en">
  <title>My first book written in DocBook</title>

  <chapter>
    <title>Title of the first chapter</title>
    <para>This is a text of paragraph.</para>
    <para>Yet another paragraph.</para>
  </chapter>

  <chapter>
    <title>Title of the second chapter</title>
    <para>Text of paragraph…</para>
    <para>Text of paragraph…</para>
  </chapter>
</book>