]> granicus.if.org Git - apache/commitdiff
Change the format slightly so that each "context" get's its own tag in
authorJoshua Slive <slive@apache.org>
Fri, 15 Feb 2002 16:07:28 +0000 (16:07 +0000)
committerJoshua Slive <slive@apache.org>
Fri, 15 Feb 2002 16:07:28 +0000 (16:07 +0000)
a <contextlist>.  This should make it easier to, for example, generate
an index of all the directives available in a certain context.

Also, add a css stylesheet, turn off link underlining, and turn all the
directive and module names green.  Further refinement necessary for sure.

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@93427 13f79535-47bb-0310-9956-ffa450edef68

docs/manual/mod/mod_setenvif.xml
docs/manual/style/manual.css [new file with mode: 0644]
docs/manual/style/manual.xsl

index 41bc4ddb04d110a95ee242755634fd0e00615a3e..4d4a85d7439a8738ad215a4afecd3a2a2959887e 100644 (file)
@@ -39,7 +39,9 @@ on characteristics of the request</description>
 <syntax>BrowserMatch <em>regex env-variable</em>[=<em>value</em>]
 [<em>env-variable</em>[=<em>value</em>]] ...</syntax>
 <default><i>none</i></default>
-<context>server config, virtual host, directory, .htaccess</context>
+<contextlist><context>server config</context>
+<context>virtual host</context><context>directory</context>
+<context>.htaccess</context></contextlist>
 <override>FileInfo</override>
 <compatibility>Apache 1.2 and
     above (in Apache 1.2 this directive was found in the
@@ -102,7 +104,9 @@ respect to case</description>
 <syntax>BrowserMatchNoCase  <em>regex env-variable</em>[=<em>value</em>]
     [<em>env-variable</em>[=<em>value</em>]] ...</syntax>
 <default><em>none</em></default>
-<context>server config, virtual host, directory, .htaccess</context>
+<contextlist><context>server config</context>
+<context>virtual host</context><context>directory</context>
+<context>.htaccess</context></contextlist>
 <override>FileInfo</override>
 <compatibility>Apache 1.2 and
     above (in Apache 1.2 this directive was found in the
@@ -140,7 +144,9 @@ respect to case</description>
     regex env-variable</em>[=<em>value</em>]
     [<em>env-variable</em>[=<em>value</em>]] ...</syntax>
 <default><em>none</em></default>
-<context> server config, virtual host, directory, .htaccess</context>
+<contextlist><context>server config</context>
+<context>virtual host</context><context>directory</context>
+<context>.htaccess</context></contextlist>
 <override>FileInfo</override>
 <compatibility>Apache 1.3 and
     above; the Request_Protocol keyword and environment-variable
@@ -234,7 +240,9 @@ without respect to case</description>
 <syntax>SetEnvIfNoCase <em>attribute regex env-variable</em>[=<em>value</em>]
     [<em>env-variable</em>[=<em>value</em>]] ...</syntax>
 <default><em>none</em></default>
-<context>server config, virtual host, directory, .htaccess</context>
+<contextlist><context>server config</context>
+<context>virtual host</context><context>directory</context>
+<context>.htaccess</context></contextlist>
 <override>FileInfo</override>
 <compatibility>Apache 1.3 and above</compatibility>
 
diff --git a/docs/manual/style/manual.css b/docs/manual/style/manual.css
new file mode 100644 (file)
index 0000000..4d0482f
--- /dev/null
@@ -0,0 +1,12 @@
+body {background: white;
+      text: black; }
+
+.help { font-weight: bold }
+
+.directive { color: green; }
+
+.module { color: green; }
+
+a:link { text-decoration: none }
+a:hover { text-decoration: underline }
+a:visited { text-decoration: none }
index 6b7c188a333b729bd08888db5f9bc008a1c6ad91..6617581728605ef7c2dd4f093546917009c86cbf 100644 (file)
@@ -1,5 +1,5 @@
 <?xml version="1.0" encoding="ISO-8859-1"?>
-
+<!DOCTYPE xsl:stylesheet [ <!ENTITY nbsp "&#160;"> ]>
 <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
   version="1.0">
 
   <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>
+      <xsl:apply-templates select="meta"/>
+      <title><xsl:value-of select="name"/> - Apache HTTP Server</title>
+      <link rel="stylesheet" type="text/css" href="../style/manual.css" />
     </head>
     <body>
 
 <table bgcolor="#cccccc" cellpadding="0" cellspacing="1">
 <tr><td>
 <table bgcolor="#ffffff">
-<tr><td><strong>Description:</strong> </td>
+<tr><td><span class="help">Description:</span> </td>
 <td><xsl:apply-templates select="description"/></td></tr>
-<tr><td><a class="help" href="module-dict.html#Status"><strong>Status:</strong></a> </td>
+<tr><td><a class="help" href="module-dict.html#Status">Status:</a> </td>
 <td><xsl:value-of select="status"/></td></tr>
-<tr><td><a class="help" href="module-dict.html#ModuleIdentifier"><strong>Module Identifier:</strong></a> </td>
+<tr><td><a class="help" href="module-dict.html#ModuleIdentifier">Module&nbsp;Identifier:</a> </td>
 <td><xsl:value-of select="identifier"/></td></tr>
-<tr><td><a class="help" href="module-dict.html#Compatibility"><strong>Compatibility:</strong></a> </td>
+<xsl:if test="compatibility">
+<tr><td><a class="help" href="module-dict.html#Compatibility">Compatibility:</a> </td>
 <td><xsl:apply-templates select="compatibility"/></td></tr>
+</xsl:if>
 </table>
 </td></tr>
 </table>
 <table bgcolor="#cccccc" border="0" cellspacing="0" cellpadding="1">
 <tr><td>
 <table bgcolor="#ffffff" width="100%">
-<tr><td><strong>Description:</strong> </td>
+<tr><td>Description: </td>
 <td><xsl:value-of select="description"/></td></tr>
 <tr><td><a class="help" href="directive-dict.html#Syntax">Syntax:</a> </td>
 <td><xsl:apply-templates select="syntax"/></td></tr>
+<xsl:if test="default">
 <tr><td><a class="help" href="directive-dict.html#Default">Default:</a> </td>
 <td><code><xsl:value-of select="default"/></code></td></tr>
+</xsl:if>
 <tr><td><a class="help" href="directive-dict.html#Context">Context:</a> </td>
-<td><xsl:value-of select="context"/></td></tr>
+<td><xsl:apply-templates select="contextlist"/></td></tr>
+<xsl:if test="override">
 <tr><td><a class="help" href="directive-dict.html#Override">Override:</a> </td>
 <td><xsl:value-of select="override"/></td></tr>
+</xsl:if>
 <tr><td><a class="help" href="directive-dict.html#Status">Status:</a> </td>
 <td><xsl:value-of select="/modulesynopsis/status"/></td></tr>
 <tr><td><a class="help" href="directive-dict.html#Module">Module:</a> </td>
 <td><xsl:value-of select="/modulesynopsis/name"/></td></tr>
+<xsl:if test="compatibility">
 <tr><td><a class="help" href="directive-dict.html#Compatibility">Compatibility:</a> </td>
 <td><xsl:value-of select="compatibility"/></td></tr>
+</xsl:if>
 </table>
 </td></tr></table>
 <xsl:apply-templates select="usage"/>
 <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:template>
 
   <xsl:template match="directive">
-    <code>
+    <code class="directive">
     <xsl:if test="@module">
       <xsl:variable name="module">
         <xsl:value-of select="./@module"/>
         <xsl:value-of select="."/>
       </xsl:variable>
       <xsl:if test="@module=/modulesynopsis/name">
-        <a href="#{$directive}"><xsl:value-of select="."/></a>
+        <a class="directive" href="#{$directive}"><xsl:value-of select="."/></a>
       </xsl:if>
       <xsl:if test="@module!=/modulesynopsis/name">
-        <a href="{$module}.html#{$directive}"><xsl:value-of select="."/></a>
+        <a class="directive" href="{$module}.html#{$directive}"><xsl:value-of select="."/></a>
       </xsl:if>
     </xsl:if>
     <xsl:if test="not(@module)">