]> granicus.if.org Git - apache/commitdiff
Don't print an index if there is only one section.
authorJoshua Slive <slive@apache.org>
Wed, 31 Jul 2002 20:45:50 +0000 (20:45 +0000)
committerJoshua Slive <slive@apache.org>
Wed, 31 Jul 2002 20:45:50 +0000 (20:45 +0000)
Submitted by: Vincent de Lau <vincent@delau.nl>

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

docs/manual/style/common.xsl

index 6ef68a61a8b6ab36afe60ce73effb7bbff0d8fa2..a8e803625527e2b9f98d798f7cc90b929063710b 100644 (file)
 
           <xsl:apply-templates select="summary"/>
           
-          <ul>
-            <xsl:apply-templates select="section" mode="index"/>
-          </ul>
-
+          <xsl:if test="count(section) > 1">
+            <ul>
+              <xsl:apply-templates select="section" mode="index"/>
+            </ul>
+          </xsl:if>
           <hr />
           
           <xsl:if test="seealso">