Skip to main content
Version: DocBook V4.5

title

title — The text of the title of a section of a document or of a formal block-level element

Synopsis

Mixed Content Model

title ::=
(#PCDATA|footnoteref|xref|biblioref|abbrev|acronym|citation|
citerefentry|citetitle|citebiblioid|emphasis|firstterm|
foreignphrase|glossterm|termdef|footnote|phrase|orgname|quote|
trademark|wordasword|personname|link|olink|ulink|action|
application|classname|methodname|interfacename|exceptionname|
ooclass|oointerface|ooexception|package|command|computeroutput|
database|email|envar|errorcode|errorname|errortype|errortext|
filename|function|guibutton|guiicon|guilabel|guimenu|guimenuitem|
guisubmenu|hardware|interface|keycap|keycode|keycombo|keysym|
literal|code|constant|markup|medialabel|menuchoice|mousebutton|
option|optional|parameter|prompt|property|replaceable|
returnvalue|sgmltag|structfield|structname|symbol|systemitem|uri|
token|type|userinput|varname|nonterminal|anchor|author|
authorinitials|corpauthor|corpcredit|modespec|othercredit|
productname|productnumber|revhistory|remark|subscript|
superscript|inlinegraphic|inlinemediaobject|inlineequation|
indexterm)*

Attributes

Common attributes

Name

Type

Default

pagenum

CDATA

None

Description

Title is widely used in DocBook. It identifies the titles of documents and parts of documents, and is the required caption on formal objects. It is also allowed as an optional title or caption on many additional block elements.

Processing expectations

Formatted as a displayed block. Titles are often repeated in several locations, for example, at the location where the object occurs, in the table of contents, and in running headers and footers.

DocBook does not offer any mechanism for indicating where a line break should occur in long titles. Titles are often repeated and no single line break is likely to be correct in all of the places where a title is used. Instead, you will have to rely on your processing system to provide a mechanism, such as a processing instruction, for identifing the location of forced line breaks.

There are some contexts in which a Title can appear more than once. For example, it may appear in both Book and BookInfo:

<book><title>Some Book Title</title>
<bookinfo>
<title>Some Book Title</title>
<author><firstname>Some</firstname><surname>Author</surname>
</author>
</bookinfo>

In these contexts, if the Title occurs more than once, the same title must be used in both places. It is an error to use different titles, although DocBook has no way to detect the error.

Future Changes

The InterfaceDefinition element will be discarded in DocBook V4.0. It will no longer be available in the content model of this element.

Attributes

pagenum

PageNum identifies the page on which this Title appears in some version of the printed document.

Examples

<!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.1.2//EN"
"http://www.oasis-open.org/docbook/xml/4.1.2/docbookx.dtd">
<sect1><title>A Sect One</title>
<para>
Actual content.
</para>
</sect1>

For additional examples, see also abstract, appendix, article, audioobject, beginpage, bibliography, bibliomset, biblioset, book, bookinfo, caution, chapter, collab, contractsponsor, equation, example, figure, formalpara, glossary, graphic, highlights, html-form, index, indexterm, link, lot, note, olink, othercredit, para, part, procedure, productionset, qandaset, refentry, reference, remark, sect1info, section, segmentedlist, set, sidebar, simplesect, table, titleabbrev, variablelist, xref.