blob: 0fb75841cd2f6e82aac1fcee0e47554470df53a4 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
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>
|