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

« back to all changes in this revision

Viewing changes to docs/manual/style/latex/quickreference.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
<!-- ==================================================================== -->
 
25
<!-- <quickreference>                                                     -->
 
26
<!-- Builds the directive quickreference page                             -->
 
27
<!-- ==================================================================== -->
 
28
<xsl:template match="quickreference">
 
29
 
 
30
  <xsl:call-template name="section-title"/>
 
31
 
 
32
  <xsl:apply-templates select="summary"/>
 
33
 
 
34
  <xsl:call-template name="seealso"/>
 
35
 
 
36
  <xsl:apply-templates select="legend"/>
 
37
 
 
38
  <xsl:variable name="directives"
 
39
       select="document(document($allmodules)/modulefilelist/modulefile)
 
40
         /modulesynopsis/directivesynopsis[not(@location)]" />
 
41
 
 
42
  <xsl:text>\footnotesize
 
43
</xsl:text>
 
44
 
 
45
  <xsl:text>\begin{longtable}{p{.60\textwidth}p{.25\textwidth}ll}\hline
 
46
</xsl:text>
 
47
 
 
48
<xsl:for-each
 
49
   select="$directives[translate(substring(normalize-space(name), 1,1),
 
50
                                          $lowercase,$uppercase)]">
 
51
<xsl:sort select="name" />
 
52
 
 
53
   <xsl:text>\texttt{</xsl:text>
 
54
   <xsl:apply-templates select="syntax" />
 
55
   <xsl:text>}</xsl:text>
 
56
   <xsl:text>&amp;</xsl:text>
 
57
 
 
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">
 
64
       <xsl:choose>
 
65
       <xsl:when test="count(default[count(br) &gt; 0]) &gt; 0">
 
66
          <xsl:value-of select="default/child::node()
 
67
                       [count(preceding-sibling::*) = 0]" />
 
68
       </xsl:when>
 
69
       <xsl:otherwise>
 
70
            <xsl:value-of select="default"/>
 
71
       </xsl:otherwise>
 
72
       </xsl:choose>
 
73
    </xsl:variable>
 
74
 
 
75
     <xsl:call-template name="ltescape">
 
76
        <xsl:with-param name="string">
 
77
            <xsl:value-of select="substring(substring-after(concat($default,
 
78
                                  ' '), name),1,20)" />
 
79
        </xsl:with-param>
 
80
      </xsl:call-template>
 
81
 
 
82
      <xsl:if test="string-length(substring-after(concat($default, ' '),
 
83
                name)) &gt; 20 or count(default[count(br) &gt; 0]) &gt; 0">
 
84
         <xsl:text> +</xsl:text>
 
85
      </xsl:if>
 
86
 
 
87
      <xsl:text>&amp;</xsl:text>
 
88
 
 
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>
 
97
 
 
98
      <xsl:text>&amp;</xsl:text>
 
99
            <xsl:choose>
 
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>
 
105
            </xsl:choose>
 
106
 
 
107
     <xsl:text>\\*
 
108
</xsl:text>
 
109
 
 
110
      <xsl:text>\multicolumn{4}{l}{\begin{minipage}[t]{.95\textwidth}</xsl:text>
 
111
         <xsl:choose>
 
112
         <xsl:when test="string-length(normalize-space(description)) &gt; 0">
 
113
             <xsl:apply-templates select="description"/>
 
114
         </xsl:when>
 
115
         <xsl:otherwise>
 
116
             <xsl:text>-</xsl:text>
 
117
         </xsl:otherwise>
 
118
         </xsl:choose>
 
119
 
 
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>
 
124
 
 
125
 
 
126
    <xsl:text>\end{minipage}} \\ \hline
 
127
</xsl:text>
 
128
 
 
129
  </xsl:for-each> <!-- /directives -->
 
130
 
 
131
  <xsl:text>\end{longtable}
 
132
\normalsize</xsl:text>
 
133
 
 
134
</xsl:template>
 
135
 
 
136
<xsl:template match="legend">
 
137
<xsl:apply-templates/>
 
138
</xsl:template>
 
139
 
 
140
</xsl:stylesheet>