XML technologies / DocBook / The DocBook XSL stylesheets / Working with shared templates / Changing formatting
(Excerpt from "DocBook-XML: Media-neutral and platform-independent publishing" by Thomas Schraitle)
For recurring formatting such as bold or italics, the FO and HTML stylesheets provide named templates. They format the supplied text and account for writing direction (attribute dir), XLinks and any annotations. These are the template names:
Table: Font styles as format-independent template names
Template name | Description |
| no formatting change |
| uses a monospaced font |
| uses bold |
| uses italics |
| uses a bold monospaced font |
| uses an italic monospaced font |
| generates superscript text |
| generates subscript text |
Use xsl:call-template to invoke the corresponding named template:
<xsl:template match="command|d:command">
<xsl:call-template name="inline.boldmonoseq"/>
</xsl:template>
Copyright © 2009 Millin Verlag
You may print the online version for your private use.
Otherwise, this chapter from "DocBook-XML: Medienneutrales und plattformunabhängiges Publizieren" is subject to the same provisions as the printed edition: the work, including all its parts, is protected by copyright. All rights are reserved, including reproduction, translation, microfilming, and storage and processing in electronic systems.
Millin Verlag, Siebengebirgsring 36, 53797 Lohmar, info(at)millin.de
back to top