diff options
Diffstat (limited to 'docs/docbook/xslt/db2latex/bridgehead.mod.xsl')
-rw-r--r-- | docs/docbook/xslt/db2latex/bridgehead.mod.xsl | 74 |
1 files changed, 74 insertions, 0 deletions
diff --git a/docs/docbook/xslt/db2latex/bridgehead.mod.xsl b/docs/docbook/xslt/db2latex/bridgehead.mod.xsl new file mode 100644 index 0000000000..0fb75841cd --- /dev/null +++ b/docs/docbook/xslt/db2latex/bridgehead.mod.xsl @@ -0,0 +1,74 @@ +<?xml version='1.0'?> +<!--############################################################################# +| $Id: bridgehead.mod.xsl,v 1.1 2003/04/30 21:39:49 ab Exp $ +|- ############################################################################# +| $Author: ab $ +| +| PURPOSE: ++ ############################################################################## --> + +<xsl:stylesheet + xmlns:xsl="http://www.w3.org/1999/XSL/Transform" + xmlns:doc="http://nwalsh.com/xsl/documentation/1.0" + exclude-result-prefixes="doc" version='1.0'> + + <!--############################################################################# --> + <!-- DOCUMENTATION --> + <doc:reference id="bridgehead" xmlns=""> + <referenceinfo> + <releaseinfo role="meta"> + $Id: bridgehead.mod.xsl,v 1.1 2003/04/30 21:39:49 ab Exp $ + </releaseinfo> + <authorgroup> + <author><firstname>Ramon</firstname> <surname>Casellas</surname></author> + <author><firstname>James</firstname> <surname>Devenish</surname></author> + </authorgroup> + <copyright> + <year>2000</year> <year>2001</year> <year>2002</year> <year>2003</year> + <holder>Ramon Casellas</holder> + </copyright> + </referenceinfo> + + <title>BridgeHead <filename>bridgehead.mod.xsl</filename></title> + <partintro> + <section><title>Introduction</title> + <para>Handle the <sgmltag class="element">bridgehead</sgmltag> element.</para> + </section> + </partintro> + </doc:reference> + + + <doc:template match="bridgehead" xmlns=""> + <refpurpose> + A free-floating heading. + </refpurpose> + <refdescription> + <para> + Renders un-numbered section headings. + For <literal>renderas</literal> values of sect1, sect2, and sect3, LaTeX <quote>star</quote> commands (such as <literal>\section*</literal>) are used. + Otherwise, a bold heading is put on a line of its own. + </para> + </refdescription> + </doc:template> + + <xsl:template match="bridgehead"> + <xsl:choose> + <xsl:when test="@renderas='sect1' or @renderas='sect2' or @renderas='sect3'"> + <xsl:text> \</xsl:text> + <xsl:if test="@renderas='sect2'"><xsl:text>sub</xsl:text></xsl:if> + <xsl:if test="@renderas='sect3'"><xsl:text>subsub</xsl:text></xsl:if> + <xsl:text>section*{</xsl:text> + <xsl:apply-templates/> + <xsl:text>}</xsl:text> + <xsl:call-template name="label.id"/> + <xsl:text> </xsl:text> + </xsl:when> + <xsl:otherwise> + <xsl:text> </xsl:text> + <xsl:text> \noindent{\bfseries </xsl:text><xsl:apply-templates/><xsl:text>} \\ </xsl:text> + <xsl:call-template name="label.id"/> + </xsl:otherwise> + </xsl:choose> + </xsl:template> + +</xsl:stylesheet> |