t:docbook

t:docbook — Process a DocBook document.

Template:
{http://docbook.org/ns/docbook/templates}docbook
Defined in:
docbook.xsl
Used in:
docbook.xsl

Synopsis

<xsl:template name="t:docbook">
                  <xsl:param name="return" as="xs:string"/>
                </xsl:template>

Description

This mode processes a DocBook document. It’s usually called automatically by the root template in the stylesheets. You only need to call it explicitly if you have an override for the root template and want to do some specialized processing.

The template has a single parameter, return, which selects what should be constructed by the template:

main-document, the default value

Returns the primary output of the stylesheet.

raw-results

Returns a map with two keys, document containing the original DocBook document processed and output containing the transformed result.

chunked-results

Returns a map with two keys, document containing the original DocBook document processed and chunks containing a map from output URIs to documents.

Any other value is an error.