<?xml version='1.0'?>
<!-- vim: sw=2 sta et
-->
<!DOCTYPE xsl:stylesheet [
<!ENTITY lsquo "‘">
<!ENTITY rsquo "’">
<!ENTITY ldquo "“">
<!ENTITY rdquo "”">
]>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
xmlns:doc="http://nwalsh.com/xsl/documentation/1.0"
xmlns="http://docbook2x.sourceforge.net/xmlns/Man-XML"
exclude-result-prefixes="doc"
version='1.0'
xml:lang="en">
<!-- ********************************************************************
$Id: caption.xsl,v 1.7 2004/08/22 22:46:04 stevecheng Exp $
********************************************************************
(C) 2000-2004 Steve Cheng <stevecheng@users.sourceforge.net>
This file is part of the docbook2X XSLT stylesheets for
converting DocBook to man pages.
See ../../COPYING for the copyright status of this software.
******************************************************************** -->
<doc:reference xmlns="">
<title>Captions (really headings)</title>
</doc:reference>
<!-- ==================================================================== -->
<doc:template name="make-caption" xmlns="">
<refpurpose>Render as a ‘caption’</refpurpose>
<refdescription>
<para>
This template renders content (usually titles in certain block objects)
as a ‘caption’.
</para>
</refdescription>
<refparameter>
<variablelist>
<varlistentry>
<term><parameter>content</parameter></term>
<listitem><para>
The result tree fragment to render. If not specified, defaults to
applying <function>for-title</function> mode to the
<emphasis>context</emphasis> node.
</para></listitem>
</varlistentry>
</variablelist>
</refparameter>
</doc:template>
<xsl:template name="make-caption">
<xsl:param name="content">
<xsl:apply-templates select="." mode="for-title" />
</xsl:param>
<para>
<b>
<xsl:copy-of select="$content" />
</b>
</para>
</xsl:template>
<!-- ==================================================================== -->
</xsl:stylesheet>