2 <!--#############################################################################
3 |- #############################################################################
6 + ############################################################################## -->
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=
"">
17 <releaseinfo role=
"meta">
20 <author><firstname>Ramon
</firstname> <surname>Casellas
</surname></author>
21 <author><firstname>James
</firstname> <surname>Devenish
</surname></author>
24 <year>2000</year> <year>2001</year> <year>2002</year> <year>2003</year>
25 <holder>Ramon Casellas
</holder>
29 <title>BridgeHead
<filename>bridgehead.mod.xsl
</filename></title>
31 <section><title>Introduction
</title>
32 <para>Handle the
<sgmltag class=
"element">bridgehead
</sgmltag> element.
</para>
38 <doc:template match=
"bridgehead" xmlns=
"">
40 A free-floating heading.
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.
51 <xsl:template match=
"bridgehead">
53 <xsl:when test=
"@renderas='sect1' or @renderas='sect2' or @renderas='sect3'">
54 <xsl:text> \
</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> </xsl:text>
64 <xsl:text> </xsl:text>
65 <xsl:text> \noindent{\bfseries
</xsl:text><xsl:apply-templates/><xsl:text>} \\
</xsl:text>
66 <xsl:call-template name=
"label.id"/>