removing RCS tags
[Samba.git] / docs / docbook / xslt / db2latex / bridgehead.mod.xsl
bloba09ca15dda3cf422753956efa8f1506fd471dfc6
1 <?xml version='1.0'?>
2 <!--#############################################################################
3 |- #############################################################################
4 |
5 | PURPOSE:
6 + ############################################################################## -->
8 <xsl:stylesheet
9 xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
10 xmlns:doc="http://nwalsh.com/xsl/documentation/1.0"
11 exclude-result-prefixes="doc" version='1.0'>
13 <!--############################################################################# -->
14 <!-- DOCUMENTATION -->
15 <doc:reference id="bridgehead" xmlns="">
16 <referenceinfo>
17 <releaseinfo role="meta">
18 </releaseinfo>
19 <authorgroup>
20 <author><firstname>Ramon</firstname> <surname>Casellas</surname></author>
21 <author><firstname>James</firstname> <surname>Devenish</surname></author>
22 </authorgroup>
23 <copyright>
24 <year>2000</year> <year>2001</year> <year>2002</year> <year>2003</year>
25 <holder>Ramon Casellas</holder>
26 </copyright>
27 </referenceinfo>
29 <title>BridgeHead <filename>bridgehead.mod.xsl</filename></title>
30 <partintro>
31 <section><title>Introduction</title>
32 <para>Handle the <sgmltag class="element">bridgehead</sgmltag> element.</para>
33 </section>
34 </partintro>
35 </doc:reference>
38 <doc:template match="bridgehead" xmlns="">
39 <refpurpose>
40 A free-floating heading.
41 </refpurpose>
42 <refdescription>
43 <para>
44 Renders un-numbered section headings.
45 For <literal>renderas</literal> values of sect1, sect2, and sect3, LaTeX <quote>star</quote> commands (such as <literal>\section*</literal>) are used.
46 Otherwise, a bold heading is put on a line of its own.
47 </para>
48 </refdescription>
49 </doc:template>
51 <xsl:template match="bridgehead">
52 <xsl:choose>
53 <xsl:when test="@renderas='sect1' or @renderas='sect2' or @renderas='sect3'">
54 <xsl:text>&#10;\</xsl:text>
55 <xsl:if test="@renderas='sect2'"><xsl:text>sub</xsl:text></xsl:if>
56 <xsl:if test="@renderas='sect3'"><xsl:text>subsub</xsl:text></xsl:if>
57 <xsl:text>section*{</xsl:text>
58 <xsl:apply-templates/>
59 <xsl:text>}</xsl:text>
60 <xsl:call-template name="label.id"/>
61 <xsl:text>&#10;</xsl:text>
62 </xsl:when>
63 <xsl:otherwise>
64 <xsl:text>&#10;&#10;</xsl:text>
65 <xsl:text>&#10;\noindent{\bfseries </xsl:text><xsl:apply-templates/><xsl:text>} \\ &#10;</xsl:text>
66 <xsl:call-template name="label.id"/>
67 </xsl:otherwise>
68 </xsl:choose>
69 </xsl:template>
71 </xsl:stylesheet>