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="no"/>
12 <xsl:template match="moduleindex">
14 <head><title><xsl:value-of select="title"/> - Apache HTTP Server</title>
15 <link rel="stylesheet" type="text/css" href="../style/manual.css" />
20 <img src="../images/sub.gif" alt="[APACHE DOCUMENTATION]" />
21 <h3>Apache HTTP Server Version 2.0</h3>
23 <h1 align="center"><xsl:value-of select="title"/></h1>
24 <xsl:apply-templates select="summary" />
25 <h2>Core Features and Multi-Processing Modules</h2>
27 <xsl:for-each select="document(modulelist/modulefile)/modulesynopsis">
28 <xsl:sort select="name"/>
29 <xsl:if test="status='MPM' or status='Core'">
30 <dt><a href="{name}.html"><xsl:value-of select="name"/></a></dt>
31 <dd><xsl:apply-templates select="description"/></dd>
35 <h2>Other Modules</h2>
37 <xsl:for-each select="document(modulelist/modulefile)/modulesynopsis">
38 <xsl:sort select="name"/>
39 <xsl:if test="status!='MPM' and status!='Core'">
40 <dt><a href="{name}.html"><xsl:value-of select="name"/></a></dt>
41 <dd><xsl:apply-templates select="description"/></dd>
48 <h3 align="center">Apache HTTP Server Version 2.0</h3>
49 <a href="./"><img src="../images/index.gif" alt="Index" /></a>
50 <a href="../"><img src="../images/home.gif" alt="Home" /></a>
56 <xsl:template match="directiveindex">
58 <head><title><xsl:value-of select="title"/> - Apache HTTP Server</title>
59 <link rel="stylesheet" type="text/css" href="../style/manual.css" />
64 <img src="../images/sub.gif" alt="[APACHE DOCUMENTATION]" />
65 <h3>Apache HTTP Server Version 2.0</h3>
67 <h1 align="center"><xsl:value-of select="title"/></h1>
68 <xsl:apply-templates select="summary" />
70 <xsl:for-each select="document(modulelist/modulefile)/modulesynopsis/directivesynopsis">
71 <xsl:sort select="name"/>
72 <xsl:if test="not(/modulesynopsis/directivesynopsis/@location)">
73 <li><a href="{/modulesynopsis/name}.html#{translate(name,$uppercase,$lowercase)}"
74 ><xsl:value-of select="name"/></a></li>
81 <h3 align="center">Apache HTTP Server Version 2.0</h3>
82 <a href="./"><img src="../images/index.gif" alt="Index" /></a>
83 <a href="../"><img src="../images/home.gif" alt="Home" /></a>
88 <!-- Process an entire document into an HTML page -->
89 <xsl:template match="modulesynopsis">
93 XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
94 This file is generated from xml source: DO NOT EDIT
95 XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
97 <xsl:apply-templates select="meta"/>
98 <title><xsl:value-of select="name"/> - Apache HTTP Server</title>
99 <link rel="stylesheet" type="text/css" href="../style/manual.css" />
104 <img src="../images/sub.gif" alt="[APACHE DOCUMENTATION]" />
105 <h3>Apache HTTP Server Version 2.0</h3>
107 <h1 align="center"><xsl:value-of select="$messages/message[@name='apachemodule']"/><xsl:text> </xsl:text> <xsl:value-of select="name"/></h1>
108 <!-- Description and module-headers -->
109 <table bgcolor="#cccccc" cellpadding="0" cellspacing="1"><tr><td>
110 <table bgcolor="#ffffff">
111 <tr><td valign="top"><span class="help"><xsl:value-of select="$messages/message[@name='description']"/>:</span> </td>
112 <td><xsl:apply-templates select="description"/></td></tr>
113 <tr><td><a class="help" href="module-dict.html#Status"><xsl:value-of select="$messages/message[@name='status']"/>:</a> </td>
114 <td><xsl:value-of select="status"/></td></tr>
115 <xsl:if test="identifier">
116 <tr><td><a class="help" href="module-dict.html#ModuleIdentifier"><xsl:value-of select="$messages/message[@name='moduleidentifier']"/>:</a> </td>
117 <td><xsl:value-of select="identifier"/></td></tr>
119 <xsl:if test="compatibility">
120 <tr><td valign="top" align="left"><a class="help" href="module-dict.html#Compatibility"
121 ><xsl:value-of select="$messages/message[@name='compatibility']"/>:</a> </td>
122 <td><xsl:apply-templates select="compatibility"/></td>
128 <!-- Summary of module features/usage (1 to 3 paragraphs, optional) -->
130 <xsl:if test="summary">
132 <xsl:apply-templates select="summary"/>
135 <xsl:if test="seealso">
136 <p><strong><xsl:value-of select="$messages/message[@name='seealso']"/></strong></p>
138 <xsl:for-each select="seealso">
139 <li><xsl:apply-templates/></li>
144 <!-- Index of directives, automatically generated from
145 directivesynopsis/name -->
149 <xsl:if test="directivesynopsis">
151 <xsl:for-each select="directivesynopsis">
152 <xsl:sort select="name"/>
153 <xsl:variable name="name">
154 <xsl:value-of select="name"/>
156 <xsl:variable name="lowername"
157 select="translate($name, $uppercase, $lowercase)" />
158 <xsl:if test="not(@location)">
159 <li><a href="#{$lowername}"><xsl:value-of select="name"/></a></li>
161 <xsl:if test="./@location">
162 <xsl:variable name="location">
163 <xsl:value-of select="./@location"/>
165 <xsl:variable name="lowerlocation"
166 select="translate($location, $uppercase, $lowercase)" />
167 <li><a href="{$lowerlocation}.html#{$lowername}"><xsl:value-of select="name"/></a></li>
172 <xsl:if test="not(directivesynopsis)">
173 <p>This module provides no directives.</p>
176 <!-- Sections of documentation about the module as a whole -->
178 <xsl:apply-templates select="section"/>
182 <!-- Directive documentation -->
184 <xsl:apply-templates select="directivesynopsis">
185 <xsl:sort select="name"/>
186 </xsl:apply-templates>
190 <h3 align="center">Apache HTTP Server Version 2.0</h3>
191 <a href="./"><img src="../images/index.gif" alt="Index" /></a>
192 <a href="../"><img src="../images/home.gif" alt="Home" /></a>
197 </xsl:template> <!-- /modulesynopsis -->
200 <!-- Subsections: get a lower level heading -->
201 <xsl:template match="section/section">
202 <xsl:variable name="href">
203 <xsl:value-of select="@id"/>
205 <!-- Section heading -->
207 <h3><a name="{$href}"><xsl:apply-templates select="./title" mode="print"/></a></h3>
209 <xsl:if test="not(@id)">
210 <h3><xsl:apply-templates select="./title" mode="print"/></h3>
212 <!-- Section body -->
213 <xsl:apply-templates/>
216 <!-- Process a documentation section -->
217 <xsl:template match="section">
218 <xsl:variable name="href">
219 <xsl:value-of select="@id"/>
221 <!-- Section heading -->
223 <h2><a name="{$href}"><xsl:apply-templates select="./title" mode="print"/></a></h2>
225 <xsl:if test="not(@id)">
226 <h2><xsl:apply-templates select="./title" mode="print"/></h2>
228 <!-- Section body -->
229 <xsl:apply-templates/>
232 <xsl:template match="section/title" mode="print">
233 <xsl:apply-templates/>
236 <!-- Don't print the title twice -->
237 <xsl:template match="section/title"></xsl:template>
239 <xsl:template match="directivesynopsis">
241 <xsl:if test="not(@location)">
242 <xsl:variable name="name">
243 <xsl:value-of select="./name"/>
245 <xsl:variable name="lowername"
246 select="translate($name, $uppercase, $lowercase)" />
247 <!-- Directive heading gets both mixed case and lowercase anchors,
248 and includes lt/gt only for "section" directives -->
249 <h2><a name="{$name}"><xsl:if test="./@type='section'"><</xsl:if
250 ><xsl:value-of select="./name"/><xsl:if test="./@type='section'"
251 >></xsl:if></a><xsl:text> </xsl:text><a
252 name="{$lowername}">Directive</a></h2>
254 <!-- Directive header -->
255 <table bgcolor="#cccccc" border="0" cellspacing="0" cellpadding="1">
257 <table bgcolor="#ffffff">
258 <tr><td><strong><xsl:value-of select="$messages/message[@name='description']"/>: </strong></td>
259 <td><xsl:value-of select="description"/></td></tr>
260 <tr><td><a class="help" href="directive-dict.html#Syntax"><xsl:value-of select="$messages/message[@name='syntax']"/>:</a> </td>
261 <td><xsl:apply-templates select="syntax"/></td></tr>
262 <xsl:if test="default">
263 <tr><td><a class="help" href="directive-dict.html#Default"
264 ><xsl:value-of select="$messages/message[@name='default']"/>:</a> </td>
265 <td><code><xsl:value-of select="default"/></code></td></tr>
267 <tr><td><a class="help" href="directive-dict.html#Context"><xsl:value-of select="$messages/message[@name='context']"/>:</a> </td>
268 <td><xsl:apply-templates select="contextlist"/></td></tr>
269 <xsl:if test="override">
270 <tr><td><a class="help" href="directive-dict.html#Override"
271 ><xsl:value-of select="$messages/message[@name='override']"/>:</a> </td>
272 <td><xsl:value-of select="override"/></td></tr>
274 <tr><td><a class="help" href="directive-dict.html#Status"><xsl:value-of select="$messages/message[@name='status']"/>:</a> </td>
275 <td><xsl:value-of select="/modulesynopsis/status"/></td></tr>
276 <tr><td><a class="help" href="directive-dict.html#Module"><xsl:value-of select="$messages/message[@name='module']"/>:</a> </td>
278 <xsl:if test="modulelist"><xsl:apply-templates select="modulelist"/>
280 <xsl:if test="not(modulelist)">
281 <xsl:value-of select="/modulesynopsis/name"/>
284 <xsl:if test="compatibility">
285 <tr><td valign="top" align="left"><a class="help" href="directive-dict.html#Compatibility"
286 ><xsl:value-of select="$messages/message[@name='compatibility']"/>:</a> </td>
287 <td><xsl:value-of select="compatibility"/></td></tr>
292 <xsl:apply-templates select="usage"/>
293 <xsl:if test="seealso">
294 <p><strong><xsl:value-of select="$messages/message[@name='seealso']"/></strong></p>
296 <xsl:for-each select="seealso">
297 <li><xsl:apply-templates/></li>
303 </xsl:if> <!-- not(@location) -->
304 </xsl:template> <!-- /directivesynopsis -->
306 <xsl:template match="contextlist">
307 <xsl:apply-templates select="context"/>
310 <xsl:template match="context">
311 <xsl:value-of select="." />
312 <xsl:if test="not(position()=last())">, </xsl:if>
315 <xsl:template match="modulelist">
316 <xsl:apply-templates select="module"/>
319 <xsl:template match="example">
321 <table cellpadding="10"><tr><td bgcolor="#eeeeee">
322 <xsl:apply-templates select="title" mode="print"/>
323 <code><xsl:apply-templates/></code>
328 <xsl:template match="example/title" mode="print">
329 <p align="center"><strong><xsl:apply-templates/></strong></p>
331 <xsl:template match="example/title"></xsl:template>
333 <xsl:template match="note">
337 <xsl:when test="@type='warning'">
338 <xsl:attribute name="bgcolor">#ffe5f5</xsl:attribute>
341 <xsl:attribute name="bgcolor">#e0e5f5</xsl:attribute>
344 <xsl:apply-templates/>
348 <xsl:template match="note/title">
349 <p align="center"><strong><xsl:apply-templates/></strong></p>
352 <xsl:template match="directive">
353 <xsl:if test="@module">
354 <xsl:variable name="module">
355 <xsl:value-of select="./@module"/>
357 <xsl:variable name="directive">
358 <xsl:value-of select="."/>
360 <xsl:variable name="lowerdirective" select="translate($directive, $uppercase, $lowercase)" />
361 <xsl:if test="@module=/modulesynopsis/name">
362 <a class="directive" href="#{$lowerdirective}"><code class="directive"><xsl:if test="./@type='section'"><</xsl:if><xsl:value-of select="."/><xsl:if test="./@type='section'">></xsl:if></code></a>
364 <xsl:if test="@module!=/modulesynopsis/name">
365 <a class="directive" href="{$module}.html#{$lowerdirective}"><code class="directive"><xsl:if test="./@type='section'"><</xsl:if><xsl:value-of select="."/><xsl:if test="./@type='section'">></xsl:if></code></a>
368 <xsl:if test="not(@module)">
369 <code class="directive"><xsl:if test="./@type='section'"><</xsl:if><xsl:value-of select="."/><xsl:if test="./@type='section'">></xsl:if></code>
373 <xsl:template match="module">
374 <code><a href="{.}.html"><xsl:value-of select="."/></a></code><xsl:if test="parent::modulelist"><xsl:if test="not(position()=last())">, </xsl:if>
378 <!-- These templates just pass through their content -->
379 <xsl:template match="summary">
380 <xsl:apply-templates/>
383 <xsl:template match="description">
384 <xsl:apply-templates/>
387 <xsl:template match="usage">
388 <xsl:apply-templates/>
391 <xsl:template match="syntax">
392 <xsl:apply-templates/>
395 <!-- Process everything else by just passing it through -->
396 <xsl:template match="*|@*">
398 <xsl:apply-templates select="@*|*|text()"/>