]> granicus.if.org Git - apache/commitdiff
Make the <summary> optional and change the header on nested sections.
authorJoshua Slive <slive@apache.org>
Fri, 15 Feb 2002 18:04:53 +0000 (18:04 +0000)
committerJoshua Slive <slive@apache.org>
Fri, 15 Feb 2002 18:04:53 +0000 (18:04 +0000)
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@93431 13f79535-47bb-0310-9956-ffa450edef68

docs/manual/style/manual.xsl

index 6617581728605ef7c2dd4f093546917009c86cbf..f6bb2504696f489f83e778c4aa704b79186c3e26 100644 (file)
@@ -38,7 +38,6 @@
 
 <!-- Description and module-headers -->
 
-
 <table bgcolor="#cccccc" cellpadding="0" cellspacing="1">
 <tr><td>
 <table bgcolor="#ffffff">
 </table>
 
 
+<xsl:if test="summary">
 <h2>Summary</h2>
 <xsl:apply-templates select="summary"/>
+</xsl:if>
 
 <xsl:if test="seealso">
 <p><strong>See also:</strong></p>
     </html>
   </xsl:template>
 
+  <xsl:template match="section/section">
+   <xsl:variable name="href">
+      <xsl:value-of select="@id"/>
+    </xsl:variable>
+      <!-- Section heading -->
+    <xsl:if test="@id">
+      <h3><a name="{$href}"><xsl:apply-templates select="./title" mode="print"/></a></h3>
+    </xsl:if>
+    <xsl:if test="not(@id)">
+      <h3><xsl:apply-templates select="./title" mode="print"/></h3>
+    </xsl:if>
+      <!-- Section body -->
+        <xsl:apply-templates/>
+  </xsl:template>
+
 <!-- Process a documentation section -->
   <xsl:template match="section">
     <xsl:variable name="href">