2
<!DOCTYPE xsl:stylesheet [ <!ENTITY % xsldoc.ent SYSTEM "./xsldoc.ent"> %xsldoc.ent; ]>
3
<!--#############################################################################
4
| $Id: bridgehead.mod.xsl,v 1.12 2004/01/11 11:35:25 j-devenish Exp $
5
|- #############################################################################
6
| $Author: j-devenish $
7
+ ############################################################################## -->
10
xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
11
xmlns:doc="http://nwalsh.com/xsl/documentation/1.0"
12
exclude-result-prefixes="doc" version='1.0'>
14
<doc:reference id="bridgehead" xmlns="">
16
<releaseinfo role="meta">
17
$Id: bridgehead.mod.xsl,v 1.12 2004/01/11 11:35:25 j-devenish Exp $
24
<year>2000</year><year>2001</year><year>2002</year><year>2003</year>
25
<holder>Ramon Casellas</holder>
28
<doc:revision rcasver="1.10">&rev_2003_05;</doc:revision>
31
<title>Free-floating Headings <filename>bridgehead.mod.xsl</filename></title>
33
<para>The file <filename>bridgehead.mod.xsl</filename> contains the
34
XSL template for <doc:db>bridgehead</doc:db>.</para>
38
<doc:template basename="bridgehead" xmlns="">
39
<refpurpose>Process <doc:db>bridgehead</doc:db> elements</refpurpose>
43
Free-floating headings for <doc:db
44
basename="bridgehead">bridgeheads</doc:db> elements. Renders
45
un-numbered section headings.
56
<listitem><simpara>The sectioning level to be emulated (e.g. <quote>1</quote> for <doc:db>sect1</doc:db>). Chooses the current node's <literal>@renderas</literal> attribute by default.</simpara></listitem>
60
<listitem><simpara>The content that forms the bridgehead text. By default, normal templates will be applied for the current node.</simpara></listitem>
67
The emulation of section headings is achieved through the
68
normal &latex; section commands such as
69
<function condition="latex">section</function>, <function condition="latex">subsection</function>,
70
and so forth. However, levels above three (3) will be typeset
71
with the &latex; <function condition="latex">paragraph*</function> command.
76
<simplelist type='inline'>
85
<listitem><simpara>&mapping;</simpara></listitem>
90
<xsl:template match="bridgehead" name="bridgehead">
91
<xsl:param name="renderas" select="@renderas"/>
92
<xsl:param name="content"><xsl:apply-templates/></xsl:param>
94
<xsl:when test="$renderas='sect1' or $renderas='sect2' or $renderas='sect3'">
95
<xsl:text> \</xsl:text>
96
<xsl:if test="$renderas='sect2'"><xsl:text>sub</xsl:text></xsl:if>
97
<xsl:if test="$renderas='sect3'"><xsl:text>subsub</xsl:text></xsl:if>
98
<xsl:text>section*{</xsl:text>
99
<xsl:copy-of select="$content"/>
100
<xsl:text>}</xsl:text>
101
<xsl:call-template name="label.id"/>
102
<xsl:text> </xsl:text>
106
<xsl:text> </xsl:text>
107
<xsl:text>\vspace{1em}\noindent{\bfseries </xsl:text><xsl:copy-of select="$content"/><xsl:text>}</xsl:text>
108
<xsl:call-template name="label.id"/>
109
<xsl:text>\par\noindent </xsl:text>
111
<xsl:text> \paragraph*{</xsl:text>
112
<xsl:copy-of select="$content"/>
113
<xsl:text>}</xsl:text>
114
<xsl:call-template name="label.id"/>
115
<xsl:text> \noindent </xsl:text>