Moving docs tree to docs-xml to make room for generated docs in the release tarball.
[Samba.git] / docs-xml / xslt / db2latex-xsl / xsl / bridgehead.mod.xsl
blobbef74a2bca384e524efc209249743de2f24fed7d
1 <?xml version='1.0'?>
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 + ############################################################################## -->
9 <xsl:stylesheet
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="">
15 <referenceinfo>
16 <releaseinfo role="meta">
17 $Id: bridgehead.mod.xsl,v 1.12 2004/01/11 11:35:25 j-devenish Exp $
18 </releaseinfo>
19 <authorgroup>
20 &ramon;
21 &james;
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 <revhistory>
28 <doc:revision rcasver="1.10">&rev_2003_05;</doc:revision>
29 </revhistory>
30 </referenceinfo>
31 <title>Free-floating Headings <filename>bridgehead.mod.xsl</filename></title>
32 <partintro>
33 <para>The file <filename>bridgehead.mod.xsl</filename> contains the
34 XSL template for <doc:db>bridgehead</doc:db>.</para>
35 </partintro>
36 </doc:reference>
38 <doc:template basename="bridgehead" xmlns="">
39 <refpurpose>Process <doc:db>bridgehead</doc:db> elements</refpurpose>
40 <doc:description>
41 <para>
43 Free-floating headings for <doc:db
44 basename="bridgehead">bridgeheads</doc:db> elements. Renders
45 un-numbered section headings.
47 </para>
48 </doc:description>
49 <doc:variables>
50 &no_var;
51 </doc:variables>
52 <doc:params>
53 <variablelist>
54 <varlistentry>
55 <term>renderas</term>
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>
57 </varlistentry>
58 <varlistentry>
59 <term>content</term>
60 <listitem><simpara>The content that forms the bridgehead text. By default, normal templates will be applied for the current node.</simpara></listitem>
61 </varlistentry>
62 </variablelist>
63 </doc:params>
64 <doc:notes>
65 <para>
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.
73 </para>
74 </doc:notes>
75 <doc:samples>
76 <simplelist type='inline'>
77 &test_book;
78 &test_subfig;
79 &test_tables;
80 </simplelist>
81 </doc:samples>
82 <!--
83 <doc:seealso>
84 <itemizedlist>
85 <listitem><simpara>&mapping;</simpara></listitem>
86 </itemizedlist>
87 </doc:seealso>
88 -->
89 </doc:template>
90 <xsl:template match="bridgehead" name="bridgehead">
91 <xsl:param name="renderas" select="@renderas"/>
92 <xsl:param name="content"><xsl:apply-templates/></xsl:param>
93 <xsl:choose>
94 <xsl:when test="$renderas='sect1' or $renderas='sect2' or $renderas='sect3'">
95 <xsl:text>&#10;\</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>&#10;</xsl:text>
103 </xsl:when>
104 <xsl:otherwise>
105 <!--
106 <xsl:text>&#10;&#10;</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&#10;</xsl:text>
111 <xsl:text>&#10;\paragraph*{</xsl:text>
112 <xsl:copy-of select="$content"/>
113 <xsl:text>}</xsl:text>
114 <xsl:call-template name="label.id"/>
115 <xsl:text>&#10;&#10;\noindent&#10;</xsl:text>
116 </xsl:otherwise>
117 </xsl:choose>
118 </xsl:template>
120 </xsl:stylesheet>