~ubuntu-branches/ubuntu/feisty/apache2/feisty

« back to all changes in this revision

Viewing changes to docs/manual/style/latex/common.xsl

  • Committer: Bazaar Package Importer
  • Author(s): Andreas Barth
  • Date: 2006-12-09 21:05:45 UTC
  • mfrom: (0.6.1 upstream)
  • Revision ID: james.westby@ubuntu.com-20061209210545-h70s0xaqc2v8vqr2
Tags: 2.2.3-3.2
* Non-maintainer upload.
* 043_ajp_connection_reuse: Patch from upstream Bugzilla, fixing a critical
  issue with regard to connection reuse in mod_proxy_ajp.
  Closes: #396265

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
<?xml version="1.0"?>
 
2
 
 
3
<!--
 
4
 Licensed to the Apache Software Foundation (ASF) under one or more
 
5
 contributor license agreements.  See the NOTICE file distributed with
 
6
 this work for additional information regarding copyright ownership.
 
7
 The ASF licenses this file to You under the Apache License, Version 2.0
 
8
 (the "License"); you may not use this file except in compliance with
 
9
 the License.  You may obtain a copy of the License at
 
10
 
 
11
     http://www.apache.org/licenses/LICENSE-2.0
 
12
 
 
13
 Unless required by applicable law or agreed to in writing, software
 
14
 distributed under the License is distributed on an "AS IS" BASIS,
 
15
 WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 
16
 See the License for the specific language governing permissions and
 
17
 limitations under the License.
 
18
-->
 
19
 
 
20
<xsl:stylesheet version="1.0"
 
21
              xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
 
22
                  xmlns="http://www.w3.org/1999/xhtml">
 
23
 
 
24
<!-- Constants used for case translation -->
 
25
<xsl:variable name="lowercase" select="'abcdefghijklmnopqrstuvwxyz'" />
 
26
<xsl:variable name="uppercase" select="'ABCDEFGHIJKLMNOPQRSTUVWXYZ'" />
 
27
 
 
28
<!-- ==================================================================== -->
 
29
<!-- Process a documentation section                                      -->
 
30
<!-- ==================================================================== -->
 
31
<xsl:template match="section">
 
32
<xsl:apply-templates/>
 
33
</xsl:template>
 
34
 
 
35
<xsl:template match="section/title">
 
36
<xsl:text>\subsection*{</xsl:text>
 
37
<xsl:apply-templates/>
 
38
<xsl:text>}</xsl:text><xsl:call-template name="label"/>
 
39
<xsl:text>
 
40
</xsl:text>
 
41
</xsl:template>
 
42
 
 
43
<xsl:template match="section/section/title">
 
44
<xsl:text>\subsubsection*{</xsl:text>
 
45
<xsl:apply-templates/>
 
46
<xsl:text>}</xsl:text><xsl:call-template name="label"/>
 
47
<xsl:text>
 
48
</xsl:text>
 
49
</xsl:template>
 
50
 
 
51
<xsl:template match="section/section/section/title">
 
52
<xsl:text>\subsubsection*{</xsl:text>
 
53
<xsl:apply-templates/>
 
54
<xsl:text>}</xsl:text><xsl:call-template name="label"/>
 
55
<xsl:text>
 
56
</xsl:text>
 
57
</xsl:template>
 
58
 
 
59
<xsl:template match="note/title"></xsl:template>
 
60
<xsl:template match="example/title"></xsl:template>
 
61
 
 
62
<xsl:template name="label">
 
63
<xsl:if test="../@id">
 
64
<xsl:variable name="metafile" select="document(/*/@metafile)/metafile" />
 
65
<xsl:text>\label{</xsl:text><xsl:value-of 
 
66
select="$metafile/path"/><xsl:value-of 
 
67
select="$metafile/basename"/>
 
68
<xsl:text>:</xsl:text>
 
69
<xsl:value-of select="../@id"/>
 
70
<xsl:text>}</xsl:text>
 
71
</xsl:if>
 
72
</xsl:template>
 
73
 
 
74
 
 
75
<!-- ==================================================================== -->
 
76
<!-- <example>                                                            -->
 
77
<!-- ==================================================================== -->
 
78
<!-- verbatim inside of fbox doesn't work for some reason -->
 
79
<xsl:template match="example">
 
80
<xsl:text>\par\smallskip\begin{center}</xsl:text>
 
81
<xsl:if test="not(pre)"><xsl:text>\fbox{</xsl:text></xsl:if>
 
82
<xsl:text>\begin{minipage}{.8\textwidth}\begin{flushleft}</xsl:text>
 
83
<xsl:apply-templates select="title" mode="print" />
 
84
<xsl:text>{\ttfamily\small </xsl:text>
 
85
<xsl:text>\noindent </xsl:text><xsl:apply-templates/>
 
86
<xsl:text>}</xsl:text>
 
87
<xsl:text>\end{flushleft}\end{minipage}</xsl:text>
 
88
<xsl:if test="not(pre)"><xsl:text>}</xsl:text></xsl:if>
 
89
<xsl:text>\end{center}\par\smallskip</xsl:text>
 
90
</xsl:template>
 
91
 
 
92
<xsl:template match="example/title" mode="print">
 
93
<xsl:text>\textbf{</xsl:text>
 
94
    <xsl:apply-templates/>
 
95
<xsl:text>}\\ </xsl:text>
 
96
</xsl:template>
 
97
 
 
98
 
 
99
<!-- ==================================================================== -->
 
100
<!-- indentations                                                         -->
 
101
<!-- ==================================================================== -->
 
102
<xsl:template match="indent">
 
103
<xsl:text>\begin{list}{}{\topsep 0pt\rightmargin 0pt\leftmargin 2em}
 
104
\item[] </xsl:text>
 
105
<xsl:apply-templates/>
 
106
<xsl:text>\end{list}</xsl:text>
 
107
</xsl:template>
 
108
 
 
109
<!-- ==================================================================== -->
 
110
<!-- <note>                                                               -->
 
111
<!-- ==================================================================== -->
 
112
<xsl:template match="note">
 
113
<xsl:text>\par\smallskip
 
114
{\Huge </xsl:text>
 
115
<xsl:choose>
 
116
<xsl:when test="@type='warning'">
 
117
  <xsl:text>\fbox{!} </xsl:text>
 
118
</xsl:when>
 
119
<xsl:otherwise>
 
120
  <xsl:text>$\Longrightarrow$</xsl:text>
 
121
</xsl:otherwise>
 
122
</xsl:choose>
 
123
<xsl:text>}\begin{minipage}[t]{.8\textwidth}
 
124
\noindent </xsl:text>
 
125
<xsl:apply-templates select="title" mode="print" />
 
126
<xsl:apply-templates/>
 
127
<xsl:text>\end{minipage}\par\smallskip</xsl:text>
 
128
</xsl:template>
 
129
 
 
130
<xsl:template match="note/title" mode="print">
 
131
<xsl:text>\textbf{</xsl:text>
 
132
    <xsl:apply-templates/>
 
133
<xsl:text>} \\
 
134
\noindent </xsl:text>
 
135
</xsl:template>
 
136
 
 
137
 
 
138
<!-- ==================================================================== -->
 
139
<!-- <directive>                                                          -->
 
140
<!-- Inserts link to another directive, which might be in another module. -->
 
141
<!-- References are converted into lower case.                            -->
 
142
<!-- ==================================================================== -->
 
143
<xsl:template match="directive" name="directive">
 
144
<xsl:text>\textsc{</xsl:text>
 
145
   <xsl:if test="@type='section'"><xsl:text>\textless{}</xsl:text></xsl:if>
 
146
   <xsl:text>\hyperlink{/mod/</xsl:text>
 
147
   <xsl:value-of select="@module"/>
 
148
   <xsl:text>:</xsl:text>
 
149
   <xsl:value-of select="translate(.,$uppercase,$lowercase)"/>
 
150
   <xsl:text>}{</xsl:text>
 
151
        <xsl:apply-templates/>
 
152
   <xsl:text>}</xsl:text>
 
153
   <xsl:if test="@type='section'"><xsl:text>\textgreater{}</xsl:text></xsl:if>
 
154
<xsl:text>}</xsl:text>
 
155
</xsl:template>
 
156
<!-- /directive -->
 
157
 
 
158
<!-- ==================================================================== -->
 
159
<!-- <module>                                                             -->
 
160
<!-- Inserts a link to refereed module                                    -->
 
161
<!-- ==================================================================== -->
 
162
<xsl:template match="module" name="module">
 
163
<xsl:text>\textsc{\hyperlink{/mod/</xsl:text>
 
164
  <xsl:value-of select="."/>
 
165
  <xsl:text>}{</xsl:text>
 
166
    <xsl:apply-templates/>
 
167
  <xsl:text>}</xsl:text>
 
168
<xsl:text>}</xsl:text>
 
169
</xsl:template>
 
170
<!-- /module -->
 
171
 
 
172
 
 
173
 
 
174
<!-- ==================================================================== -->
 
175
<!-- <related>                                                            -->
 
176
<!-- ==================================================================== -->
 
177
<xsl:template match="related">
 
178
<xsl:text>
 
179
\fbox{\begin{tabular}{rr}
 
180
\begin{minipage}[t]{.49\linewidth}
 
181
\textbf{</xsl:text>
 
182
<xsl:value-of select="$message[@id='relatedmodules']" />
 
183
<xsl:text>} \\
 
184
</xsl:text>
 
185
<xsl:for-each select="modulelist/module">
 
186
<xsl:call-template name="module"/>
 
187
<xsl:text> \\
 
188
</xsl:text>
 
189
</xsl:for-each>
 
190
<xsl:text>
 
191
\end{minipage} &amp; 
 
192
\begin{minipage}[t]{.4\linewidth}
 
193
\textbf{</xsl:text>
 
194
<xsl:value-of select="$message[@id='relateddirectives']" />
 
195
<xsl:text>} \\
 
196
</xsl:text>
 
197
<xsl:for-each select="directivelist/directive">
 
198
<xsl:call-template name="directive"/>
 
199
<xsl:text> \\
 
200
</xsl:text>
 
201
</xsl:for-each>
 
202
<xsl:text>
 
203
\end{minipage}
 
204
\end{tabular}}
 
205
\smallskip
 
206
</xsl:text>
 
207
</xsl:template>
 
208
 
 
209
 
 
210
<!-- ==================================================================== -->
 
211
<!-- <seealso>                                                            -->
 
212
<!-- ==================================================================== -->
 
213
<xsl:template name="seealso">
 
214
     <xsl:if test="seealso">
 
215
        <xsl:text>\textbf{</xsl:text>
 
216
        <xsl:value-of select="$message[@id='seealso']" />
 
217
        <xsl:text>}\begin{itemize}</xsl:text>
 
218
        <xsl:for-each select="seealso">
 
219
        <xsl:text>\item </xsl:text>
 
220
          <xsl:apply-templates />
 
221
        <xsl:text>
 
222
</xsl:text>
 
223
        </xsl:for-each>
 
224
<xsl:text>\end{itemize}</xsl:text>
 
225
     </xsl:if>
 
226
</xsl:template>
 
227
 
 
228
 
 
229
<!-- ==================================================================== -->
 
230
<!-- section-title                                                        -->
 
231
<!-- ==================================================================== -->
 
232
<xsl:template name="section-title">
 
233
<xsl:variable name="metafile" select="document(/*/@metafile)/metafile" />
 
234
<xsl:text>\section{</xsl:text><xsl:apply-templates select="title"/>
 
235
<xsl:text>}</xsl:text>
 
236
<xsl:text>\label{</xsl:text><xsl:value-of 
 
237
select="$metafile/path"/><xsl:value-of 
 
238
select="$metafile/basename"/>
 
239
<xsl:text>}
 
240
</xsl:text>
 
241
</xsl:template>
 
242
 
 
243
</xsl:stylesheet>
 
244