]> git.ipfire.org Git - thirdparty/apache/httpd.git/commitdiff
backport http://svn.apache.org/r1674382
authorAndré Malo <nd@apache.org>
Fri, 17 Apr 2015 20:04:20 +0000 (20:04 +0000)
committerAndré Malo <nd@apache.org>
Fri, 17 Apr 2015 20:04:20 +0000 (20:04 +0000)
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/branches/2.0.x@1674391 13f79535-47bb-0310-9956-ffa450edef68

docs/manual/style/xsl/common.xsl

index 0df06dd4e82ab325128d351487eeab0f179ca45e..158927298a59cabf6085b046b42889dba9ad14ed 100644 (file)
 <!-- ==================================================================== -->
 <xsl:template name="head">
 <head>
-    <!-- the meta element is necessary for offline handling like CHM -->
-    <xsl:choose>
-    <xsl:when test="$is-chm or $is-zip">
-        <meta http-equiv="Content-Type"
-                 content="text/html; charset={$output-encoding}" />
-    </xsl:when>
-    <xsl:otherwise>
+    &lf;
+    <meta http-equiv="Content-Type"
+          content="text/html; charset={$output-encoding}" />&lf;
+    <xsl:if test="not($is-chm or $is-zip)">
         <xsl:comment>
             &lf;
             <xsl:text>        </xsl:text>
             <xsl:text>XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX</xsl:text>
             &lf;
             <xsl:text>      </xsl:text>
-        </xsl:comment>
-    </xsl:otherwise>
-    </xsl:choose>&lf;
+        </xsl:comment>&lf;
+    </xsl:if>
 
     <title>
         <xsl:choose>