]> granicus.if.org Git - apache/commitdiff
The good thing about standards is that there are so many to choose from.
authorAndré Malo <nd@apache.org>
Fri, 17 Apr 2015 19:46:28 +0000 (19:46 +0000)
committerAndré Malo <nd@apache.org>
Fri, 17 Apr 2015 19:46:28 +0000 (19:46 +0000)
Fix https://bz.apache.org/bugzilla/show_bug.cgi?id=55741

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

docs/manual/style/xsl/common.xsl

index 00281f350bbf85967029ede8db4c5fe70346be7b..4743f99a32a5ca79c1d7145fafbe20a554e53579 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>