XML technologies / ePUB / Open Publication Structure / Construction and hierarchy / Structuring with DTBook

(Excerpt from “E-Books mit ePUB ─ Von Word zum E-Book mit XML” by Dr. Victor Wang)

As we have seen, DTBook structures content using a genuine markup-supported hierarchy. Two approaches express it:

  1. For limited hierarchy depth, use the elements <level1>, <level2>, <level3> through <level6>.


  2. For deeper hierarchies, use the element <level>, which can be nested without limit.

The two approaches cannot be mixed, so choose one at the outset. For the element <level>, use the attribute depth="Hierarchietiefe" to identify its hierarchical depth.

Each level must contain a heading. Numbered levels use the elements <h1>, <h2> through <h6>. With the arbitrarily nestable element <level>, place the heading in the element <hd> (Heading).

Assign level semantics with the attribute class="Bedeutung der Ebene". Although unrestricted, conventional names are sensible.

Within the preliminary pages (Frontmatter), the following class attributes may be useful. All the following meanings follow the DAISY Structure Guidelines:

class attribute value

Suggested German class attribute value

Meaning

title_page

Titelseite

Title page with full title, author, editor if applicable, publisher and edition

acknowledgments

Danksagung

Author’s thanks to people or institutions supporting the writing; may also form part of the preface

dedication

Widmung

Author’s personal dedication

preface

Vorwort

Author’s preface

print_toc

Inhaltsverzeichnis

Table of contents

Table: class attribute values in DTBook preliminary pages

A table of contents in the preliminary pages could look like this:

<level class="Inhaltsverzeichnis">
  <hd>Inhaltsverzeichnis</hd>
  <list type="ul">
    <li>
      <lic class="Inhalteintrag">Vorwort</lic>
      <lic class="Seite">343</lic>
    </li>
    <li>
      <lic class="Inhalteintrag">Erster Streich</lic>
      <lic class="Seite">344</lic>
    </li>
  </list>
</level> 

Code example: DTBook table of contents

For the main text (Bodymatter), there are no fixed class attributes, since hierarchy depends heavily on content. Chapters are usual, so the following class attributes might apply:

class attribute value

Suggested German class attribute value

Meaning

Part

Teil

A higher-level division grouping several chapters or sections; in print, a part usually starts on its own sheet on a new right-hand page.

Section

Abschnitt

A higher-level division grouping chapters to avoid excessively long chapters; in print, a section usually starts on a new page, but its chapters follow immediately.

Chapter

Kapitel

The most important and widespread textual division. Chapters usually follow without page breaks.

Table: class attribute values in DTBook main text

Other level meanings, such as subchapters, subsections, letters or numbers, depend on the chapter structure’s use or conventions of particular genres.

 

As an example, consider this computer textbook’s printed layout and hierarchy:

Layout of a three-level book hierarchy

Figure: Layout of a three-level book hierarchy.

 

Structure it in DTBook as follows, heavily shortened for clarity with paragraphs only suggested:

<level1 class="Teil">
  <h1>Teil III: Weitere Möglichkeiten</h1>
  <level2 class="Abschnitt">
    <h2>11. DocBook-Anpassungen</h2>
    <level3 class="Kapitel">
      <h3>11.1 Simplified DocBook</h3>
      <p>Text Text Text</p>
    </level3>
    <level3 class="Kapitel">
      <h3>11.2 Andere Anpassungen</h3>
      <p>Text Text Text</p>
    </level3>
    <level3 class="Kapitel">
      <h3>11.3 Eigene Anpassungen</h3>
      <p>Text Text Text</p>
    </level3>
  </level2>
</level1> 

Code example: Proposed three-level book hierarchy in DTBook

The reference section (Rearmatter) may finally contain:

class attribute value

Suggested German class attribute value

Meaning

Appendix

Anhang

Appendices often contain detailed materials or reference texts not essential to understanding the main text and therefore placed separately.

Notes

Anmerkungen

Notes referring directly to text but moved to the end for clarity, usually referenced by superscript numbers.

Glossary

Glossar

Short definitions of important terms used in the text

Bibliography

Literaturverzeichnis

List of cited or used literature

Index

Stichwortverzeichnis

Keyword index, usually with page references in print

   

 

 

 

back to top