<html><head> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> <title>Part 2. Common Template Reference</title><link rel="stylesheet" type="text/css" href="../reference.css"><meta name="generator" content="DocBook XSL Stylesheets V1.79.2"><meta name="description" content="This is technical reference documentation for the “base”, “refentry”, and “utility” sets of common templates in the DocBook XSL Stylesheets. These templates are “common” in that they are shared across output formats (that is, they’re not output-format-dependent) This documentation is not intended to be user documentation. It is provided for developers writing customization layers for the stylesheets."><link rel="home" href="../index.html" title="DocBook XSL Stylesheets: Reference Documentation"><link rel="up" href="../developer.html" title="DocBook XSL Stylesheets Developer Reference"><link rel="prev" href="../lib/dirname.html" title="dirname"><link rel="next" href="base.html" title="Common » Base Template Reference"><link rel="copyright" href="copyright.html" title="License"></head><body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF"><div class="navheader"><table width="100%" summary="Navigation header"><tr><th colspan="3" align="center">Part 2. Common Template Reference</th></tr><tr><td width="20%" align="left"><a accesskey="p" href="../lib/dirname.html">Prev</a> </td><th width="60%" align="center">DocBook XSL Stylesheets Developer Reference</th><td width="20%" align="right"> <a accesskey="n" href="base.html">Next</a></td></tr></table><hr></div><div class="part"><div class="titlepage"><div><div><h1 class="title"><a name="common-part"></a>Part 2. Common Template Reference</h1></div><div><div class="abstract"><p>This is technical reference documentation for the “base”, “refentry”, and “utility” sets of common templates in the DocBook XSL Stylesheets. These templates are “common” in that they are shared across output formats (that is, they’re not output-format-dependent)</p><p>This documentation is not intended to be user documentation. It is provided for developers writing customization layers for the stylesheets.</p></div></div></div></div><div class="toc"><p><b>Table of Contents</b></p><dl class="toc"><dt><span class="reference"><a href="base.html">2.1. Common » Base Template Reference</a></span></dt><dd><dl><dt><span class="refentrytitle"><a href="template.is.component.html">is.component</a></span><span class="refpurpose"> — Tests if a given node is a component-level element</span></dt><dt><span class="refentrytitle"><a href="template.is.section.html">is.section</a></span><span class="refpurpose"> — Tests if a given node is a section-level element</span></dt><dt><span class="refentrytitle"><a href="template.section.level.html">section.level</a></span><span class="refpurpose"> — Returns the hierarchical level of a section</span></dt><dt><span class="refentrytitle"><a href="template.qanda.section.level.html">qanda.section.level</a></span><span class="refpurpose"> — Returns the hierarchical level of a QandASet</span></dt><dt><span class="refentrytitle"><a href="template.select.mediaobject.html">select.mediaobject</a></span><span class="refpurpose"> — Selects and processes an appropriate media object from a list</span></dt><dt><span class="refentrytitle"><a href="template.select.mediaobject.index.html">select.mediaobject.index</a></span><span class="refpurpose"> — Selects the position of the appropriate media object from a list</span></dt><dt><span class="refentrytitle"><a href="template.is.acceptable.mediaobject.html">is.acceptable.mediaobject</a></span><span class="refpurpose"> — Returns '1' if the specified media object is recognized</span></dt><dt><span class="refentrytitle"><a href="template.check.id.unique.html">check.id.unique</a></span><span class="refpurpose"> — Warn users about references to non-unique IDs</span></dt><dt><span class="refentrytitle"><a href="template.check.idref.targets.html">check.idref.targets</a></span><span class="refpurpose"> — Warn users about incorrectly typed references</span></dt><dt><span class="refentrytitle"><a href="template.copyright.years.html">copyright.years</a></span><span class="refpurpose"> — Print a set of years with collapsed ranges</span></dt><dt><span class="refentrytitle"><a href="template.find.path.params.html">find.path.params</a></span><span class="refpurpose"> — Search in a table for the "best" match for the node</span></dt><dt><span class="refentrytitle"><a href="template.string.upper.html">string.upper</a></span><span class="refpurpose"> — Converts a string to all uppercase letters</span></dt><dt><span class="refentrytitle"><a href="template.string.lower.html">string.lower</a></span><span class="refpurpose"> — Converts a string to all lowercase letters</span></dt><dt><span class="refentrytitle"><a href="template.select.choice.separator.html">select.choice.separator</a></span><span class="refpurpose"> — Returns localized choice separator</span></dt><dt><span class="refentrytitle"><a href="template.evaluate.info.profile.html">evaluate.info.profile</a></span><span class="refpurpose"> — Evaluates an info profile</span></dt><dt><span class="refentrytitle"><a href="template.graphic.format.content-type.html">graphic.format.content-type</a></span><span class="refpurpose"> — Returns mimetype for media format</span></dt></dl></dd><dt><span class="reference"><a href="refentry.html">2.2. Common » Refentry Metadata Template Reference</a></span></dt><dd><dl><dt><span class="refentrytitle"><a href="template.get.refentry.metadata.html">get.refentry.metadata</a></span><span class="refpurpose"> — Gathers metadata from a refentry and its ancestors</span></dt><dt><span class="refentrytitle"><a href="template.get.refentry.title.html">get.refentry.title</a></span><span class="refpurpose"> — Gets title metadata for a refentry</span></dt><dt><span class="refentrytitle"><a href="template.get.refentry.section.html">get.refentry.section</a></span><span class="refpurpose"> — Gets section metadata for a refentry</span></dt><dt><span class="refentrytitle"><a href="template.get.refentry.date.html">get.refentry.date</a></span><span class="refpurpose"> — Gets date metadata for a refentry</span></dt><dt><span class="refentrytitle"><a href="template.get.refentry.source.html">get.refentry.source</a></span><span class="refpurpose"> — Gets source metadata for a refentry</span></dt><dt><span class="refentrytitle"><a href="template.get.refentry.source.name.html">get.refentry.source.name</a></span><span class="refpurpose"> — Gets source-name metadata for a refentry</span></dt><dt><span class="refentrytitle"><a href="template.get.refentry.version.html">get.refentry.version</a></span><span class="refpurpose"> — Gets version metadata for a refentry</span></dt><dt><span class="refentrytitle"><a href="template.get.refentry.manual.html">get.refentry.manual</a></span><span class="refpurpose"> — Gets source metadata for a refentry</span></dt><dt><span class="refentrytitle"><a href="template.get.refentry.metadata.prefs.html">get.refentry.metadata.prefs</a></span><span class="refpurpose"> — Gets user preferences for refentry metadata gathering</span></dt><dt><span class="refentrytitle"><a href="template.set.refentry.metadata.html">set.refentry.metadata</a></span><span class="refpurpose"> — Sets content of a refentry metadata item</span></dt></dl></dd><dt><span class="reference"><a href="utility.html">2.3. Common » Utility Template Reference</a></span></dt><dd><dl><dt><span class="refentrytitle"><a href="template.log.message.html">log.message</a></span><span class="refpurpose"> — Logs/emits formatted notes and warnings</span></dt><dt><span class="refentrytitle"><a href="template.get.doc.title.html">get.doc.title</a></span><span class="refpurpose"> — Gets a title from the current document</span></dt><dt><span class="refentrytitle"><a href="template.pad-string.html">pad-string</a></span><span class="refpurpose"> — Right-pads or left-pads a string out to a certain length</span></dt></dl></dd><dt><span class="reference"><a href="charmap.html">2.4. Common » Character-Map Template Reference</a></span></dt><dd><dl><dt><span class="refentrytitle"><a href="template.apply-character-map.html">apply-character-map</a></span><span class="refpurpose"> — Applies an XSLT character map</span></dt><dt><span class="refentrytitle"><a href="template.read-character-map.html">read-character-map</a></span><span class="refpurpose"> — Reads in all or part of an XSLT character map</span></dt></dl></dd></dl></div></div><div class="navfooter"><hr><table width="100%" summary="Navigation footer"><tr><td width="40%" align="left"><a accesskey="p" href="../lib/dirname.html">Prev</a> </td><td width="20%" align="center"><a accesskey="u" href="../developer.html">Up</a></td><td width="40%" align="right"> <a accesskey="n" href="base.html">Next</a></td></tr><tr><td width="40%" align="left" valign="top">dirname </td><td width="20%" align="center"><a accesskey="h" href="../index.html">Home</a></td><td width="40%" align="right" valign="top"> Common » Base Template Reference</td></tr></table></div></body></html>