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
11
http://www.apache.org/licenses/LICENSE-2.0
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.
20
<xsl:stylesheet version="1.0"
21
xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
22
xmlns="http://www.w3.org/1999/xhtml">
24
<!-- ==================================================================== -->
25
<!-- <quickreference> -->
26
<!-- Builds the directive quickreference page -->
27
<!-- ==================================================================== -->
28
<xsl:template match="quickreference">
30
<xsl:call-template name="section-title"/>
32
<xsl:apply-templates select="summary"/>
34
<xsl:call-template name="seealso"/>
36
<xsl:apply-templates select="legend"/>
38
<xsl:variable name="directives"
39
select="document(document($allmodules)/modulefilelist/modulefile)
40
/modulesynopsis/directivesynopsis[not(@location)]" />
42
<xsl:text>\footnotesize
45
<xsl:text>\begin{longtable}{p{.60\textwidth}p{.25\textwidth}ll}\hline
49
select="$directives[translate(substring(normalize-space(name), 1,1),
50
$lowercase,$uppercase)]">
51
<xsl:sort select="name" />
53
<xsl:text>\texttt{</xsl:text>
54
<xsl:apply-templates select="syntax" />
55
<xsl:text>}</xsl:text>
56
<xsl:text>&</xsl:text>
58
<!-- if the default value contains (at least) one <br />, -->
59
<!-- this probably means that a short explanation follows -->
60
<!-- the actual default value. We cut off the string -->
61
<!-- after the <br /> so it will not be shown here. -->
62
<!-- (add the + character instead) -->
63
<xsl:variable name="default">
65
<xsl:when test="count(default[count(br) > 0]) > 0">
66
<xsl:value-of select="default/child::node()
67
[count(preceding-sibling::*) = 0]" />
70
<xsl:value-of select="default"/>
75
<xsl:call-template name="ltescape">
76
<xsl:with-param name="string">
77
<xsl:value-of select="substring(substring-after(concat($default,
82
<xsl:if test="string-length(substring-after(concat($default, ' '),
83
name)) > 20 or count(default[count(br) > 0]) > 0">
84
<xsl:text> +</xsl:text>
87
<xsl:text>&</xsl:text>
89
<xsl:if test="contextlist/context
90
[normalize-space(.)='server config']">s</xsl:if>
91
<xsl:if test="contextlist/context
92
[normalize-space(.)='virtual host']">v</xsl:if>
93
<xsl:if test="contextlist/context
94
[normalize-space(.)='directory']">d</xsl:if>
95
<xsl:if test="contextlist/context
96
[normalize-space(.)='.htaccess']">h</xsl:if>
98
<xsl:text>&</xsl:text>
100
<xsl:when test="../status='Base'">B</xsl:when>
101
<xsl:when test="../status='MPM'">M</xsl:when>
102
<xsl:when test="../status='Core'">C</xsl:when>
103
<xsl:when test="../status='Extension'">E</xsl:when>
104
<xsl:when test="../status='Experimental'">X</xsl:when>
110
<xsl:text>\multicolumn{4}{l}{\begin{minipage}[t]{.95\textwidth}</xsl:text>
112
<xsl:when test="string-length(normalize-space(description)) > 0">
113
<xsl:apply-templates select="description"/>
116
<xsl:text>-</xsl:text>
120
<xsl:text>\hfill p.\ \pageref{/mod/</xsl:text>
121
<xsl:value-of select="../name"/> <xsl:text>:</xsl:text>
122
<xsl:value-of select="translate(name, $uppercase, $lowercase)"/>
123
<xsl:text>}</xsl:text>
126
<xsl:text>\end{minipage}} \\ \hline
129
</xsl:for-each> <!-- /directives -->
131
<xsl:text>\end{longtable}
132
\normalsize</xsl:text>
136
<xsl:template match="legend">
137
<xsl:apply-templates/>