XML technologies / DocBook / The DocBook XSL stylesheets / Working with shared templates / Generating numbering, labels and titles

(Excerpt from "DocBook-XML: Media-neutral and platform-independent publishing" by Thomas Schraitle)

To generate format-independent titles, labels or numbering, the DocBook stylesheets call template rules in a particular mode. The following table summarizes them.  

Table: Modes for titles, numbering and labels

Mode

File

Description

title.markup
subtitle.markup
titleabbrev.markup

common/titles.xsl

selects the current node’s title or subtitle. If a titleabbrev element is available, it is used (otherwise a title). Usually useful only for structural elements.

label.markup

common/labels.xsl

returns the current numbering

object.title.template
object.subtitle.template

common/gentext.xsl

depending on the *.autolabel parameters, the context selected in language files is title-numbered or title-unnumbered or subtitle.

object.title.markup
object.subtitle.markup

common/gentext.xsl

returns the current number and title or subtitle

object.title.markup.text­only

common/gentext.xsl

like object.title.markup, but ignores other elements in the title, such as emphasis and so on

profile

profiling/profile-mode.xsl

applies profiling to elements; see Conditional elements (profiling). Usually needed only when the default method does not meet your requirements.

    

back to top