Name

t:preprocess — Prepare a DocBook document for processing.

Template:
{http://docbook.org/ns/docbook/templates}preprocess
Defined in:
drivers.xsl
Used in:
docbook.xsl, drivers.xsl
Used by:
t:docbook

Synopsis

<xsl:template name="t:preprocess">
  <xsl:param name="source" as="document-node()"/>
</xsl:template>

Description

A lot of variation is possible in DocBook documents. In addition, the stylesheets have features that require combining several documents together (see $bibliography-collection, for example).

The t:preprocess template runs a pipeline of transformations that normalize the sources. This normalized source has much less variation which simplifies the templates used for main processing.

Most customizations can simply call t:docbook; you only need to call the t:preprocess, t:process, t:postprocess if you need to perform very specialized cleanup tasks.