You are viewing a plain text version of this content. The canonical link for it is here.
Posted to cvs@httpd.apache.org by rb...@apache.org on 2026/05/31 00:28:49 UTC

svn commit: r1934798 - httpd/httpd/trunk/docs/manual/style/xsl

Author: rbowen
Date: Sun May 31 00:28:48 2026
New Revision: 1934798

Log:
Tweak to make w3.org html validator a little happier

Modified:
   httpd/httpd/trunk/docs/manual/style/xsl/common.xsl
   httpd/httpd/trunk/docs/manual/style/xsl/synopsis.xsl

Modified: httpd/httpd/trunk/docs/manual/style/xsl/common.xsl
==============================================================================
--- httpd/httpd/trunk/docs/manual/style/xsl/common.xsl	Sun May 31 00:28:32 2026	(r1934797)
+++ httpd/httpd/trunk/docs/manual/style/xsl/common.xsl	Sun May 31 00:28:48 2026	(r1934798)
@@ -173,7 +173,7 @@
            rel="stylesheet"
            href="{$path}/style/css/manual-print.css"/>
     <link href="{$path}/style/css/prettify.css" type="text/css" rel="stylesheet" />&lf;
-    <script type="text/javascript" src="{$path}/style/scripts/prettify.min.js">&lf;</script>&lf;
+    <script src="{$path}/style/scripts/prettify.min.js">&lf;</script>&lf;
     <!-- chm files do not need a favicon -->
     <xsl:if test="not($is-chm or $is-zip)">&lf;
         <link rel="shortcut icon" href="{$path}/images/favicon.png" />
@@ -417,7 +417,7 @@
 
 </div> <!-- /footer -->
 
-<script type="text/javascript">
+<script>
 <xsl:text disable-output-escaping="yes"><![CDATA[<!--//--><![CDATA[//><!--
 if (typeof(prettyPrint) !== 'undefined') {
     prettyPrint();
@@ -517,9 +517,8 @@ if (qv) {
     <h2>
         <xsl:choose>
         <xsl:when test="@id">
-          <a id="{@id}" name="{@id}">
-              <xsl:apply-templates select="title" mode="print" />
-          </a>
+          <xsl:attribute name="id"><xsl:value-of select="@id" /></xsl:attribute>
+          <xsl:apply-templates select="title" mode="print" />
           <xsl:text> </xsl:text>
           <a class="permalink" href="#{@id}" title="{$message[@id='permalink']}">&para;</a>
         </xsl:when>
@@ -545,9 +544,8 @@ if (qv) {
 <h3>
     <xsl:choose>
     <xsl:when test="@id">
-        <a id="{@id}" name="{@id}">
-            <xsl:apply-templates select="title" mode="print" />
-        </a>
+        <xsl:attribute name="id"><xsl:value-of select="@id" /></xsl:attribute>
+        <xsl:apply-templates select="title" mode="print" />
     </xsl:when>
 
     <xsl:otherwise>

Modified: httpd/httpd/trunk/docs/manual/style/xsl/synopsis.xsl
==============================================================================
--- httpd/httpd/trunk/docs/manual/style/xsl/synopsis.xsl	Sun May 31 00:28:32 2026	(r1934797)
+++ httpd/httpd/trunk/docs/manual/style/xsl/synopsis.xsl	Sun May 31 00:28:48 2026	(r1934798)
@@ -372,12 +372,11 @@
         <!-- Directive heading gets both mixed case and lowercase      -->
         <!-- anchors, and includes lt/gt only for "section" directives -->
         <h2>
+            <xsl:attribute name="id"><xsl:value-of select="$lowername" /></xsl:attribute>
             <xsl:choose>
             <xsl:when test="$message
                             [@id='directive']/@before-name = 'yes'">
-                <a id="{$lowername}" name="{$lowername}">
-                    <xsl:value-of select="$message[@id='directive']" />
-                </a>
+                <xsl:value-of select="$message[@id='directive']" />
 
                 <xsl:choose>
                 <xsl:when test="$message
@@ -390,19 +389,19 @@
                 </xsl:otherwise>
                 </xsl:choose>
 
-                <a id="{$directivename}" name="{$directivename}">
+                <span id="{$directivename}">
                     <xsl:if test="@type='section'">&lt;</xsl:if>
                     <xsl:value-of select="name" />
                     <xsl:if test="@type='section'">&gt;</xsl:if>
-                </a>
+                </span>
             </xsl:when>
 
             <xsl:otherwise>
-                <a id="{$directivename}" name="{$directivename}">
+                <span id="{$directivename}">
                     <xsl:if test="@type='section'">&lt;</xsl:if>
                     <xsl:value-of select="name" />
                     <xsl:if test="@type='section'">&gt;</xsl:if>
-                </a>
+                </span>
 
                 <xsl:choose>
                 <xsl:when test="$message
@@ -415,9 +414,7 @@
                 </xsl:otherwise>
                 </xsl:choose>
 
-                <a id="{$lowername}" name="{$lowername}">
-                    <xsl:value-of select="$message[@id='directive']" />
-                </a>
+                <xsl:value-of select="$message[@id='directive']" />
             </xsl:otherwise>
             </xsl:choose>
         <xsl:text> </xsl:text>