XML technologies / DocBook / Customizing DocBook / DocBook 5 structure / Conventions for DocBook definition patterns

(Excerpt from "DocBook-XML: Medienneutrales und plattformunabhängiges Publizieren" by Thomas Schraitle)

The RELAX NG schema for DocBook 5 uses Definition patterns for each element and attribute. These definition patterns are in turn grouped into larger units. Depending on your requirements, grouping lets you customize smaller or larger units.

All patterns have two or more parts separated by a period (.). The first part always begins with the prefix db.; subsequent parts depend on the context. The following patterns illustrate the naming conventions used by DocBook 5; minor variations are possible. Uppercase names are placeholders that you must replace to obtain the actual pattern name:

 

Table: Naming conventions for DocBook 5

Pattern

Description

Attribute list pattern

db.ELEMENTNAME.attlist

Contains a list of all an element’s attributes. If an element has different properties in a different context, an optional context can also be specified.

Liste von Attributen für einen Titel:
db.title.attlist
Liste von Attributen für obligatorischen Titel in einem info:
db.titlereq.info.attlist

Attribute pattern

db.[KONTEXT.]ATTRIBUTNAME.attribute

Defines a single attribute. If an attribute has different properties in a different context, an optional context can also be specified.

arch Attribut:
db.arch.attribute
Identifiziert ein xlink:href Attribut:
db.xlink.href.attribute

Attribute set pattern

db.NAME.attributes

Contains a collection of attributes or attribute lists under a common name, such as db.common.attributes.

Enthält os, arch, ...:
db.effectivity.attributes
Enthält linkend oder href:
db.common.linking.attributes

block element pattern

db.NAME.blocks

Contains a list of different patterns for block elements that may appear between paragraphs (see Block elements):

Enthält db.list.blocks, db.admonition.blocks usw.:
db.nopara.blocks

Component pattern

db.NAME.components

Contains a group of different patterns for all higher-level components, such as chapters, appendices, and articles (see Structural elements):

Enthält db.dedication, db.preface usw.:
db.components
Enthält db.navigation.components, db.components usw.: db.part.components

Content model pattern

db.NAME.contentmodel

Contains part of a content model shared by other elements.

Inhaltsmodell eines indexterm:
db.indexterm.contentmodel
Gemeinsames Inhaltsmodell von tip, warning, caution und note: db.admonition.contentmodel

Enumeration pattern

db.[KONTEXT.]ATTRIBUTNAME.enumeration

Contains an enumeration, usually only for attributes. An attribute may allow only certain values, which are specified by this pattern. If an attribute list has different properties in a different context, an optional context can also be specified.

Aufzählungen für das halign Attribut:
db.halign.enumeration
Aufzählungen im Attribut renderas des Elements bridgehead:
db.bridgehead.renderas.enumeration

Inline element pattern

db.NAME.inlines

Contains a selection of different patterns for inline elements that may appear within a paragraph (see Inline elements):

Enthält db.technical.inlines, db.error.inlines, db.os.inlines usw.:
db.domain.inlines
Enthält db.guiicon, db.guibutton, db.guimenu usw.:
db.gui.inlines

Element pattern

db.[KONTEXT.]ELEMENTNAME

Contains the pattern for a particular element. If an element has different properties in a different context, an optional context can also be specified.

Inhaltsmodell eines Buches:
db.book
Inhaltsmodell von info im Kontext eines Buches:
db.book.info

  

back to top