manual.xsl revision 832292cf428167a83e71c7f17493fc0ab6cb7a7e
<?xml version="1.0" encoding="ISO-8859-1"?>
<!DOCTYPE xsl:stylesheet [ <!ENTITY nbsp " "> ]>
version="1.0">
<!-- Output method -->
<xsl:output method="html"
encoding="iso-8859-1"
indent="yes"/>
<!-- Defined parameters (overrideable) -->
<xsl:param name="relative-path" select="'.'"/>
<!-- Process an entire document into an HTML page -->
<xsl:template match="modulesynopsis">
<html>
<!-- XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
This file is generated from xml source: DO NOT EDIT
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX -->
<head>
<xsl:apply-templates select="meta"/>
<title><xsl:value-of select="name"/> - Apache HTTP Server</title>
</head>
<body>
<blockquote>
<div align="center">
<h3>Apache HTTP Server Version 2.0</h3>
</div>
<h1 align="center">Apache Module <xsl:value-of select="name"/></h1>
<!-- Description and module-headers -->
<table bgcolor="#cccccc" cellpadding="0" cellspacing="1">
<tr><td>
<table bgcolor="#ffffff">
<tr><td><span class="help">Description:</span> </td>
<td><xsl:apply-templates select="description"/></td></tr>
<td><xsl:value-of select="status"/></td></tr>
<td><xsl:value-of select="identifier"/></td></tr>
<xsl:if test="compatibility">
<td><xsl:apply-templates select="compatibility"/></td></tr>
</xsl:if>
</table>
</td></tr>
</table>
<h2>Summary</h2>
<xsl:apply-templates select="summary"/>
<xsl:if test="seealso">
<p><strong>See also:</strong></p>
<ul>
<xsl:for-each select="seealso">
<li><xsl:apply-templates/></li>
</xsl:for-each>
</ul>
</xsl:if>
<h2>Directives</h2>
<ul>
<xsl:sort select="name"/>
<xsl:variable name="name">
<xsl:value-of select="."/>
</xsl:variable>
<li><a href="#{$name}"><xsl:value-of select="."/></a></li>
</xsl:for-each>
</ul>
<xsl:apply-templates select="section"/>
<hr />
<xsl:apply-templates select="directivesynopsis">
<xsl:sort select="name"/>
</xsl:apply-templates>
<h3 align="center">Apache HTTP Server Version 2.0</h3>
</blockquote>
</body>
</html>
</xsl:template>
<!-- Process a documentation section -->
<xsl:template match="section">
<xsl:variable name="href">
<xsl:value-of select="@id"/>
</xsl:variable>
<!-- Section heading -->
<xsl:if test="@id">
</xsl:if>
<xsl:if test="not(@id)">
</xsl:if>
<!-- Section body -->
<xsl:apply-templates/>
</xsl:template>
<xsl:apply-templates/>
</xsl:template>
<!-- Don't print the title twice -->
<xsl:template match="directivesynopsis">
<xsl:variable name="name">
</xsl:variable>
<table bgcolor="#cccccc" border="0" cellspacing="0" cellpadding="1">
<tr><td>
<table bgcolor="#ffffff" width="100%">
<tr><td>Description: </td>
<td><xsl:value-of select="description"/></td></tr>
<td><xsl:apply-templates select="syntax"/></td></tr>
<xsl:if test="default">
<td><code><xsl:value-of select="default"/></code></td></tr>
</xsl:if>
<td><xsl:apply-templates select="contextlist"/></td></tr>
<xsl:if test="override">
<td><xsl:value-of select="override"/></td></tr>
</xsl:if>
<xsl:if test="compatibility">
<td><xsl:value-of select="compatibility"/></td></tr>
</xsl:if>
</table>
</td></tr></table>
<xsl:apply-templates select="usage"/>
<xsl:if test="seealso">
<p><strong>See also:</strong></p>
<ul>
<xsl:for-each select="seealso">
<li><xsl:apply-templates/></li>
</xsl:for-each>
</ul>
</xsl:if>
<hr />
</xsl:template>
<xsl:template match="contextlist">
<xsl:apply-templates select="context"/>
</xsl:template>
<xsl:template match="context">
<xsl:value-of select="." />
<xsl:if test="not(position()=last())">, </xsl:if>
</xsl:template>
<xsl:template match="example">
<blockquote>
<table cellpadding="10"><tr><td bgcolor="#eeeeee">
<xsl:apply-templates select="title" mode="print"/>
<code><xsl:apply-templates/></code>
</td></tr></table>
</blockquote>
</xsl:template>
<p align="center"><strong><xsl:apply-templates/></strong></p>
</xsl:template>
<xsl:template match="note">
<blockquote>
<table><tr><td bgcolor="#ffffcc">
<xsl:apply-templates/>
</td></tr></table>
</blockquote>
</xsl:template>
<p align="center"><strong><xsl:apply-templates/></strong></p>
</xsl:template>
<xsl:template match="directive">
<code class="directive">
<xsl:if test="@module">
<xsl:variable name="module">
<xsl:value-of select="./@module"/>
</xsl:variable>
<xsl:variable name="directive">
<xsl:value-of select="."/>
</xsl:variable>
<a class="directive" href="#{$directive}"><xsl:value-of select="."/></a>
</xsl:if>
<a class="directive" href="{$module}.html#{$directive}"><xsl:value-of select="."/></a>
</xsl:if>
</xsl:if>
<xsl:if test="not(@module)">
<xsl:value-of select="."/>
</xsl:if>
</code>
</xsl:template>
<xsl:template match="module">
<code>
<xsl:variable name="href">
<xsl:value-of select="."/>
</xsl:variable>
<a href="{$href}.html"><xsl:value-of select="."/></a>
</code>
</xsl:template>
<!-- Process everything else by just passing it through -->
<xsl:template match="*|@*">
<xsl:copy>
<xsl:apply-templates select="@*|*|text()"/>
</xsl:copy>
</xsl:template>
</xsl:stylesheet>