1 <?xml version="1.0" encoding="ISO-8859-1"?>
2 <!DOCTYPE xsl:stylesheet [ <!ENTITY nbsp " "> ]>
3 <xsl:stylesheet version="1.0"
4 xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
5 xmlns="http://www.w3.org/TR/xhtml1/strict">
7 <!-- Include constants, variables, and macros -->
8 <xsl:import href="settings.xsl" />
10 <xsl:output method="html" encoding="iso-8859-1" indent="yes"/>
12 <!-- Process an entire document into an HTML page -->
13 <xsl:template match="modulesynopsis">
17 XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
18 This file is generated from xml source: DO NOT EDIT
19 XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
21 <xsl:apply-templates select="meta"/>
22 <title><xsl:value-of select="name"/> - Apache HTTP Server</title>
23 <link rel="stylesheet" type="text/css" href="../style/manual.css" />
28 <img src="../images/sub.gif" alt="[APACHE DOCUMENTATION]" />
29 <h3>Apache HTTP Server Version 2.0</h3>
31 <h1 align="center"><xsl:value-of select="$messages/message[@name='apachemodule']"/><xsl:text> </xsl:text> <xsl:value-of select="name"/></h1>
32 <!-- Description and module-headers -->
33 <table bgcolor="#cccccc" cellpadding="0" cellspacing="1"><tr><td>
34 <table bgcolor="#ffffff">
35 <tr><td valign="top"><span class="help"><xsl:value-of select="$messages/message[@name='description']"/>:</span> </td>
36 <td><xsl:apply-templates select="description"/></td></tr>
37 <tr><td><a class="help" href="module-dict.html#Status"><xsl:value-of select="$messages/message[@name='status']"/>:</a> </td>
38 <td><xsl:value-of select="status"/></td></tr>
39 <xsl:if test="identifier">
40 <tr><td><a class="help" href="module-dict.html#ModuleIdentifier"><xsl:value-of select="$messages/message[@name='moduleidentifier']"/>:</a> </td>
41 <td><xsl:value-of select="identifier"/></td></tr>
43 <xsl:if test="compatibility">
44 <tr><td valign="top" align="left"><a class="help" href="module-dict.html#Compatibility"
45 ><xsl:value-of select="$messages/message[@name='compatibility']"/>:</a> </td>
46 <td><xsl:apply-templates select="compatibility"/></td>
52 <!-- Summary of module features/usage (1 to 3 paragraphs, optional) -->
54 <xsl:if test="summary">
56 <xsl:apply-templates select="summary"/>
59 <xsl:if test="seealso">
60 <p><strong><xsl:value-of select="$messages/message[@name='seealso']"/></strong></p>
62 <xsl:for-each select="seealso">
63 <li><xsl:apply-templates/></li>
68 <!-- Index of directives, automatically generated from
69 directivesynopsis/name -->
73 <xsl:if test="directivesynopsis">
75 <xsl:for-each select="directivesynopsis">
76 <xsl:sort select="name"/>
77 <xsl:variable name="name">
78 <xsl:value-of select="name"/>
80 <xsl:variable name="lowername"
81 select="translate($name, $uppercase, $lowercase)" />
82 <xsl:if test="not(@location)">
83 <li><a href="#{$lowername}"><xsl:value-of select="name"/></a></li>
85 <xsl:if test="./@location">
86 <xsl:variable name="location">
87 <xsl:value-of select="./@location"/>
89 <xsl:variable name="lowerlocation"
90 select="translate($location, $uppercase, $lowercase)" />
91 <li><a href="{$lowerlocation}.html#{$lowername}"><xsl:value-of select="name"/></a></li>
96 <xsl:if test="not(directivesynopsis)">
97 <p>This module provides no directives.</p>
100 <!-- Sections of documentation about the module as a whole -->
102 <xsl:apply-templates select="section"/>
106 <!-- Directive documentation -->
108 <xsl:apply-templates select="directivesynopsis">
109 <xsl:sort select="name"/>
110 </xsl:apply-templates>
114 <h3 align="center">Apache HTTP Server Version 2.0</h3>
115 <a href="./"><img src="../images/index.gif" alt="Index" /></a>
116 <a href="../"><img src="../images/home.gif" alt="Home" /></a>
121 </xsl:template> <!-- /modulesynopsis -->
124 <!-- Subsections: get a lower level heading -->
125 <xsl:template match="section/section">
126 <xsl:variable name="href">
127 <xsl:value-of select="@id"/>
129 <!-- Section heading -->
131 <h3><a name="{$href}"><xsl:apply-templates select="./title" mode="print"/></a></h3>
133 <xsl:if test="not(@id)">
134 <h3><xsl:apply-templates select="./title" mode="print"/></h3>
136 <!-- Section body -->
137 <xsl:apply-templates/>
140 <!-- Process a documentation section -->
141 <xsl:template match="section">
142 <xsl:variable name="href">
143 <xsl:value-of select="@id"/>
145 <!-- Section heading -->
147 <h2><a name="{$href}"><xsl:apply-templates select="./title" mode="print"/></a></h2>
149 <xsl:if test="not(@id)">
150 <h2><xsl:apply-templates select="./title" mode="print"/></h2>
152 <!-- Section body -->
153 <xsl:apply-templates/>
156 <xsl:template match="section/title" mode="print">
157 <xsl:apply-templates/>
160 <!-- Don't print the title twice -->
161 <xsl:template match="section/title"></xsl:template>
163 <xsl:template match="directivesynopsis">
165 <xsl:if test="not(@location)">
166 <xsl:variable name="name">
167 <xsl:value-of select="./name"/>
169 <xsl:variable name="lowername"
170 select="translate($name, $uppercase, $lowercase)" />
171 <!-- Directive heading gets both mixed case and lowercase anchors,
172 and includes lt/gt only for "section" directives -->
173 <h2><a name="{$name}"><xsl:if test="./@type='section'"><</xsl:if
174 ><xsl:value-of select="./name"/><xsl:if test="./@type='section'"
175 >></xsl:if></a><xsl:text> </xsl:text><a
176 name="{$lowername}">Directive</a></h2>
178 <!-- Directive header -->
179 <table bgcolor="#cccccc" border="0" cellspacing="0" cellpadding="1">
181 <table bgcolor="#ffffff">
182 <tr><td><strong><xsl:value-of select="$messages/message[@name='description']"/>: </strong></td>
183 <td><xsl:value-of select="description"/></td></tr>
184 <tr><td><a class="help" href="directive-dict.html#Syntax"><xsl:value-of select="$messages/message[@name='syntax']"/>:</a> </td>
185 <td><xsl:apply-templates select="syntax"/></td></tr>
186 <xsl:if test="default">
187 <tr><td><a class="help" href="directive-dict.html#Default"
188 ><xsl:value-of select="$messages/message[@name='default']"/>:</a> </td>
189 <td><code><xsl:value-of select="default"/></code></td></tr>
191 <tr><td><a class="help" href="directive-dict.html#Context"><xsl:value-of select="$messages/message[@name='context']"/>:</a> </td>
192 <td><xsl:apply-templates select="contextlist"/></td></tr>
193 <xsl:if test="override">
194 <tr><td><a class="help" href="directive-dict.html#Override"
195 ><xsl:value-of select="$messages/message[@name='override']"/>:</a> </td>
196 <td><xsl:value-of select="override"/></td></tr>
198 <tr><td><a class="help" href="directive-dict.html#Status"><xsl:value-of select="$messages/message[@name='status']"/>:</a> </td>
199 <td><xsl:value-of select="/modulesynopsis/status"/></td></tr>
200 <tr><td><a class="help" href="directive-dict.html#Module"><xsl:value-of select="$messages/message[@name='module']"/>:</a> </td>
202 <xsl:if test="modulelist"><xsl:apply-templates select="modulelist"/>
204 <xsl:if test="not(modulelist)">
205 <xsl:value-of select="/modulesynopsis/name"/>
208 <xsl:if test="compatibility">
209 <tr><td valign="top" align="left"><a class="help" href="directive-dict.html#Compatibility"
210 ><xsl:value-of select="$messages/message[@name='compatibility']"/>:</a> </td>
211 <td><xsl:value-of select="compatibility"/></td></tr>
216 <xsl:apply-templates select="usage"/>
217 <xsl:if test="seealso">
218 <p><strong><xsl:value-of select="$messages/message[@name='seealso']"/></strong></p>
220 <xsl:for-each select="seealso">
221 <li><xsl:apply-templates/></li>
227 </xsl:if> <!-- not(@location) -->
228 </xsl:template> <!-- /directivesynopsis -->
230 <xsl:template match="contextlist">
231 <xsl:apply-templates select="context"/>
234 <xsl:template match="context">
235 <xsl:value-of select="." />
236 <xsl:if test="not(position()=last())">, </xsl:if>
239 <xsl:template match="modulelist">
240 <xsl:apply-templates select="module"/>
243 <xsl:template match="example">
245 <table cellpadding="10"><tr><td bgcolor="#eeeeee">
246 <xsl:apply-templates select="title" mode="print"/>
247 <code><xsl:apply-templates/></code>
252 <xsl:template match="example/title" mode="print">
253 <p align="center"><strong><xsl:apply-templates/></strong></p>
255 <xsl:template match="example/title"></xsl:template>
257 <xsl:template match="note">
261 <xsl:when test="@type='warning'">
262 <xsl:attribute name="bgcolor">#ffe5f5</xsl:attribute>
265 <xsl:attribute name="bgcolor">#e0e5f5</xsl:attribute>
268 <xsl:apply-templates/>
272 <xsl:template match="note/title">
273 <p align="center"><strong><xsl:apply-templates/></strong></p>
276 <xsl:template match="directive">
277 <xsl:if test="@module">
278 <xsl:variable name="module">
279 <xsl:value-of select="./@module"/>
281 <xsl:variable name="directive">
282 <xsl:value-of select="."/>
284 <xsl:variable name="lowerdirective" select="translate($directive, $uppercase, $lowercase)" />
285 <xsl:if test="@module=/modulesynopsis/name">
286 <code class="directive"><a class="directive" href="#{$lowerdirective}"><xsl:if test="./@type='section'"><</xsl:if><xsl:value-of select="."/><xsl:if test="./@type='section'">></xsl:if></a></code>
288 <xsl:if test="@module!=/modulesynopsis/name">
289 <code class="directive"><a class="directive" href="{$module}.html#{$lowerdirective}"><xsl:if test="./@type='section'"><</xsl:if><xsl:value-of select="."/><xsl:if test="./@type='section'">></xsl:if></a></code>
292 <xsl:if test="not(@module)">
293 <code class="directive"><xsl:if test="./@type='section'"><</xsl:if><xsl:value-of select="."/><xsl:if test="./@type='section'">></xsl:if></code>
297 <xsl:template match="module">
298 <code><a href="{.}.html"><xsl:value-of select="."/></a></code><xsl:if test="parent::modulelist"><xsl:if test="not(position()=last())">, </xsl:if>
302 <!-- Process everything else by just passing it through -->
303 <xsl:template match="*|@*">
305 <xsl:apply-templates select="@*|*|text()"/>