]> git.ipfire.org Git - thirdparty/apache/httpd.git/commitdiff
Update build/style to build valid html5
authorRich Bowen <rbowen@apache.org>
Sun, 31 May 2026 13:54:29 +0000 (13:54 +0000)
committerRich Bowen <rbowen@apache.org>
Sun, 31 May 2026 13:54:29 +0000 (13:54 +0000)
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/branches/2.4.x@1934818 13f79535-47bb-0310-9956-ffa450edef68

25 files changed:
docs/manual/style/lang-targets.xml
docs/manual/style/manual.da.xsl
docs/manual/style/manual.de.xsl
docs/manual/style/manual.en.xsl
docs/manual/style/manual.es.xsl
docs/manual/style/manual.fr.xsl
docs/manual/style/manual.ja.xsl
docs/manual/style/manual.ko.xsl
docs/manual/style/manual.pt-br.xsl
docs/manual/style/manual.ru.xsl
docs/manual/style/manual.tr.xsl
docs/manual/style/manual.zh-cn.xsl
docs/manual/style/xsl/common.xsl
docs/manual/style/xsl/convmap.xsl
docs/manual/style/xsl/directiveindex.xsl
docs/manual/style/xsl/faq.xsl
docs/manual/style/xsl/indexpage.xsl
docs/manual/style/xsl/language.xsl
docs/manual/style/xsl/list_for_prettify.xsl
docs/manual/style/xsl/manualpage.xsl
docs/manual/style/xsl/moduleindex.xsl
docs/manual/style/xsl/overrideindex.xsl
docs/manual/style/xsl/quickreference.xsl
docs/manual/style/xsl/sitemap.xsl
docs/manual/style/xsl/synopsis.xsl

index dcd6a18fb2d76f2d6f1693636b446bcd8297a934..c3ee91e2fbc0c14f21162bf7f6c91e0574d8a0fd 100644 (file)
     </xmlvalidate>
 </target>
 
-</project>
+</project>
\ No newline at end of file
index 9d1d93d0252422039282fdd162a6425ef62928f1..f73f5330bf978533c883444310432617a8d35bd6 100644 (file)
@@ -18,7 +18,7 @@
 
 <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
 
-<xsl:output method="xml" encoding="ISO-8859-1" indent="no" doctype-public="-//W3C//DTD XHTML 1.0 Strict//EN" doctype-system="http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"/>
+<xsl:output method="html" encoding="ISO-8859-1" indent="no" doctype-system="about:legacy-compat"/>
 
 <!-- Read the localized messages from the specified language file -->
 <xsl:variable name="message" select="document('lang/da.xml')/language/messages/message"/>
index bae43d81a80b9af4462ab6d778a866a06ce1a772..61a9cafa08c23c16b0067700d044250b95f9874d 100644 (file)
@@ -18,7 +18,7 @@
 
 <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
 
-<xsl:output method="xml" encoding="ISO-8859-1" indent="no" doctype-public="-//W3C//DTD XHTML 1.0 Strict//EN" doctype-system="http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"/>
+<xsl:output method="html" encoding="ISO-8859-1" indent="no" doctype-system="about:legacy-compat"/>
 
 <!-- Read the localized messages from the specified language file -->
 <xsl:variable name="message" select="document('lang/de.xml')/language/messages/message"/>
index 00bb8e09586207d89a61a3b1e6371e4ef67a4f46..c6074a43a01e65761847267e2ebbfbbca7b3c573 100644 (file)
@@ -18,7 +18,7 @@
 
 <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
 
-<xsl:output method="xml" encoding="UTF-8" indent="no" doctype-public="-//W3C//DTD XHTML 1.0 Strict//EN" doctype-system="http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"/>
+<xsl:output method="html" encoding="UTF-8" indent="no" doctype-system="about:legacy-compat"/>
 
 <!-- Read the localized messages from the specified language file -->
 <xsl:variable name="message" select="document('lang/en.xml')/language/messages/message"/>
index 50f61f8dce79e3c41a153cf81e4c62316d05da48..f6a3a1ba5def963112182f1187905fe64d80352e 100644 (file)
@@ -18,7 +18,7 @@
 
 <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
 
-<xsl:output method="xml" encoding="ISO-8859-1" indent="no" doctype-public="-//W3C//DTD XHTML 1.0 Strict//EN" doctype-system="http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"/>
+<xsl:output method="html" encoding="ISO-8859-1" indent="no" doctype-system="about:legacy-compat"/>
 
 <!-- Read the localized messages from the specified language file -->
 <xsl:variable name="message" select="document('lang/es.xml')/language/messages/message"/>
index e8905ca9361c50d436f146cf2eddc4e761466982..40e9c6efd99051ad4d19daa68ae468760af6ccd8 100644 (file)
@@ -18,7 +18,7 @@
 
 <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
 
-<xsl:output method="xml" encoding="UTF-8" indent="no" doctype-public="-//W3C//DTD XHTML 1.0 Strict//EN" doctype-system="http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"/>
+<xsl:output method="html" encoding="UTF-8" indent="no" doctype-system="about:legacy-compat"/>
 
 <!-- Read the localized messages from the specified language file -->
 <xsl:variable name="message" select="document('lang/fr.xml')/language/messages/message"/>
index ca5db3851fd21896a4b9da4fe771674a6072e2a4..e7d915c7a4c4398932c7404e2202c117d943e0e9 100644 (file)
@@ -18,7 +18,7 @@
 
 <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
 
-<xsl:output method="xml" encoding="UTF-8" indent="no" doctype-public="-//W3C//DTD XHTML 1.0 Strict//EN" doctype-system="http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"/>
+<xsl:output method="html" encoding="UTF-8" indent="no" doctype-system="about:legacy-compat"/>
 
 <!-- Read the localized messages from the specified language file -->
 <xsl:variable name="message" select="document('lang/ja.xml')/language/messages/message"/>
index 25353d3e5b1efcfc03a8e8f17b38ee11b1d4d3d2..6b878e55ac6dbf990aa9778ccb598767a3badc62 100644 (file)
@@ -18,7 +18,7 @@
 
 <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
 
-<xsl:output method="xml" encoding="EUC-KR" indent="no" doctype-public="-//W3C//DTD XHTML 1.0 Strict//EN" doctype-system="http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"/>
+<xsl:output method="html" encoding="EUC-KR" indent="no" doctype-system="about:legacy-compat"/>
 
 <!-- Read the localized messages from the specified language file -->
 <xsl:variable name="message" select="document('lang/ko.xml')/language/messages/message"/>
index d41298f591baa412d6f96ed14f093cd30790a6b7..569bae93a7104951fd3ea557e92516b0802ef8f1 100644 (file)
@@ -18,7 +18,7 @@
 
 <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
 
-<xsl:output method="xml" encoding="UTF-8" indent="no" doctype-public="-//W3C//DTD XHTML 1.0 Strict//EN" doctype-system="http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"/>
+<xsl:output method="html" encoding="UTF-8" indent="no" doctype-system="about:legacy-compat"/>
 
 <!-- Read the localized messages from the specified language file -->
 <xsl:variable name="message" select="document('lang/pt-br.xml')/language/messages/message"/>
index b6c3c134a1b8e20de65e2b49a3e294dcb9a14360..c79ce83ae471df69f6e804b7df5710e322826fe8 100644 (file)
@@ -18,7 +18,7 @@
 
 <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
 
-<xsl:output method="xml" encoding="UTF-8" indent="no" doctype-public="-//W3C//DTD XHTML 1.0 Strict//EN" doctype-system="http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"/>
+<xsl:output method="html" encoding="UTF-8" indent="no" doctype-system="about:legacy-compat"/>
 
 <!-- Read the localized messages from the specified language file -->
 <xsl:variable name="message" select="document('lang/ru.xml')/language/messages/message"/>
@@ -34,4 +34,4 @@
 <!-- Now get the real guts of the stylesheet -->
 <xsl:include href="xsl/common.xsl"/>
 
-</xsl:stylesheet>
+</xsl:stylesheet>
\ No newline at end of file
index 3f8d878f94176e93dd9831c01d8dadd7d995b335..8696535676342145a620e12e02cfeb24e388373e 100644 (file)
@@ -18,7 +18,7 @@
 
 <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
 
-<xsl:output method="xml" encoding="UTF-8" indent="no" doctype-public="-//W3C//DTD XHTML 1.0 Strict//EN" doctype-system="http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"/>
+<xsl:output method="html" encoding="UTF-8" indent="no" doctype-system="about:legacy-compat"/>
 
 <!-- Read the localized messages from the specified language file -->
 <xsl:variable name="message" select="document('lang/tr.xml')/language/messages/message"/>
index 5c0e7e9125340ca0778b2ee6c144140ebf01ab4d..d5698105a3edd1794a43c42ba7de2d83747a4c0c 100644 (file)
@@ -18,7 +18,7 @@
 
 <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
 
-<xsl:output method="xml" encoding="UTF-8" indent="no" doctype-public="-//W3C//DTD XHTML 1.0 Strict//EN" doctype-system="http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"/>
+<xsl:output method="html" encoding="UTF-8" indent="no" doctype-system="about:legacy-compat"/>
 
 <!-- Read the localized messages from the specified language file -->
 <xsl:variable name="message" select="document('lang/zh-cn.xml')/language/messages/message"/>
index 7aa978fe81a9f4a1145bc3fcf78ed0e00978b966..d03675162ee3be1e54a7137e0ca5d77530e0937e 100644 (file)
@@ -26,7 +26,7 @@
 ]>
 <xsl:stylesheet version="1.0"
               xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
-                  xmlns="http://www.w3.org/1999/xhtml">
+                  xmlns="">
 
 <!--                                                                      -->
 <!-- Please, don't hard-code output strings! Use the language             -->
 <xsl:template name="head">
 <head>
     &lf;
-    <meta http-equiv="Content-Type"
-          content="text/html; charset={$output-encoding}" />&lf;
     <meta name="viewport" content="width=device-width, initial-scale=1" />&lf;
     <xsl:if test="not($is-chm or $is-zip)">
         <xsl:comment>
            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" />
 
 </div> <!-- /footer -->
 
-<script type="text/javascript">
+<script>
 <xsl:text disable-output-escaping="yes"><![CDATA[<!--//--><![CDATA[//><!--
 if (typeof(prettyPrint) !== 'undefined') {
     prettyPrint();
@@ -517,9 +515,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 +542,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>
@@ -570,9 +566,8 @@ if (qv) {
 <h4>
     <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>
index 6a07ae246fb2cd0c1f7b3f47d77d8a128ed73e80..06f13f0139a733d1d5fde1900c73849351039118 100644 (file)
@@ -22,7 +22,7 @@
 ]>
 <xsl:stylesheet version="1.0"
               xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
-                  xmlns="http://www.w3.org/1999/xhtml">
+                  xmlns="">
 
 <xsl:output method="text" encoding="utf-8" indent="no" />
 
index 0216e1a4a65bd3044bb7e2ee76c73c35968f3a65..8096ac437e93f52934802f3ac1d9c92d1d3beb9d 100644 (file)
 ]>
 <xsl:stylesheet version="1.0"
               xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
-                  xmlns="http://www.w3.org/1999/xhtml">
+                  xmlns="">
 
 <!-- ==================================================================== -->
 <!-- <directiveindex>                                                     -->
 <!-- Builds the directive index page                                      -->
 <!-- ==================================================================== -->
 <xsl:template match="directiveindex">
-<html xml:lang="{$doclang}" lang="{$doclang}">
+<html lang="{$doclang}">
     <xsl:call-template name="head"/>&lf;
 
     <body id="directive-index">
index 344bdb61ed82d01f5fdc5156cc3725ed3dda5fcd..fe4d250a80d952202688e21fc86e7157c48193f6 100644 (file)
 ]>
 <xsl:stylesheet version="1.0"
               xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
-                  xmlns="http://www.w3.org/1999/xhtml">
+                  xmlns="">
 
 <!-- ==================================================================== -->
 <!-- <faq>                                                                -->
 <!-- Process an entire document into an HTML page                         -->
 <!-- ==================================================================== -->
 <xsl:template match="faq">
-<html xml:lang="{$doclang}" lang="{$doclang}">
+<html lang="{$doclang}">
     <xsl:call-template name="head"/>&lf;
 
     <body id="manual-page">
index 83ca1717eaea82b58520d2ee8ee5df54e5d8cb10..f1a14d0e6200d947f57eb46682362322daaf61dd 100644 (file)
@@ -22,7 +22,7 @@
 ]>
 <xsl:stylesheet version="1.0"
               xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
-                  xmlns="http://www.w3.org/1999/xhtml">
+                  xmlns="">
 
 <!--                                                                      -->
 <!-- Three columns, select where the particular categories shall be       -->
@@ -48,7 +48,7 @@
 <!-- Process an entire document into an HTML page                         -->
 <!-- ==================================================================== -->
 <xsl:template match="/indexpage">
-<html xml:lang="{$doclang}" lang="{$doclang}">
+<html lang="{$doclang}">
     <xsl:call-template name="head"/>&lf;
 
     <body id="index-page">&lf;
index 1e1a76a971ef81c25271757d6f20da546e5cf18b..43a728e73ecf7599bb3d2af7f3926035b96e690a 100644 (file)
@@ -408,8 +408,10 @@ Some targets have additional requirements:
         <xsl:attribute name="method">
             <xsl:choose>
             <xsl:when test="$type = 'manual' or
-                            $type = 'chm' or
                             $type = 'zip'">
+                <xsl:text>html</xsl:text>
+            </xsl:when>
+            <xsl:when test="$type = 'chm'">
                 <xsl:text>xml</xsl:text>
             </xsl:when>
             <xsl:when test="$type = 'hhc' or
@@ -443,20 +445,10 @@ Some targets have additional requirements:
         </xsl:attribute>
         <xsl:attribute name="indent">no</xsl:attribute>
         <xsl:if test="$type = 'manual' or
-                      $type = 'chm' or
                       $type = 'zip'">
-            <xsl:attribute name="doctype-public">
-                <xsl:text>-//W3C//DTD XHTML 1.0 Strict//EN</xsl:text>
-            </xsl:attribute>
+            <xsl:attribute name="doctype-system">about:legacy-compat</xsl:attribute>
         </xsl:if>
-        <xsl:if test="$type = 'manual'">
-            <xsl:attribute name="doctype-system">
-                <xsl:text>http://www.w3.org/TR/xhtml1/DTD/</xsl:text>
-                <xsl:text>xhtml1-strict.dtd</xsl:text>
-            </xsl:attribute>
-        </xsl:if>
-        <xsl:if test="$type = 'chm' or
-                      $type = 'zip'">
+        <xsl:if test="$type = 'chm'">
             <xsl:attribute name="omit-xml-declaration">yes</xsl:attribute>
         </xsl:if>
     </xsl:element>
index a97b7d67e23b982e9251a14ec0521467c80dca51..0fdde1bf673d89a57305812c0d57e88ff24041b9 100644 (file)
@@ -22,7 +22,7 @@
 ]>
 <xsl:stylesheet version="1.0"
               xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
-                  xmlns="http://www.w3.org/1999/xhtml">
+                  xmlns="">
 
 <!-- Shoud have encoding="ISO-8859-1" but works better without -->
 <xsl:output method="text" indent="no" />
index 70a6d0a24d23d8e1a1560ce80ad177d78cf59de7..73513d7044d52e4bacf4d1cc6422047108acd8ad 100644 (file)
 ]>
 <xsl:stylesheet version="1.0"
               xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
-                  xmlns="http://www.w3.org/1999/xhtml">
+                  xmlns="">
 
 <!-- ==================================================================== -->
 <!-- <manualpage>                                                         -->
 <!-- Process an entire document into an HTML page                         -->
 <!-- ==================================================================== -->
 <xsl:template match="manualpage">
-<html xml:lang="{$doclang}" lang="{$doclang}">
+<html lang="{$doclang}">
     <xsl:call-template name="head" />&lf;
 
     <body id="manual-page">
index ad54441326cbbadf95a71556f7d92ffd02b0caf4..b892ac82a31ad8444b3870983fef73f61543ba70 100644 (file)
 ]>
 <xsl:stylesheet version="1.0"
               xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
-                  xmlns="http://www.w3.org/1999/xhtml">
+                  xmlns="">
 
 <!-- ==================================================================== -->
 <!-- <moduleindex>                                                        -->
 <!-- Builds the moduleindex page                                          -->
 <!-- ==================================================================== -->
 <xsl:template match="moduleindex">
-<html xml:lang="{$doclang}" lang="{$doclang}">
+<html lang="{$doclang}">
     <xsl:call-template name="head"/>&lf;
 
     <body id="module-index">
index 60fa02a9f6cc563e374279eeb289ad71eba9a06a..2867a956f192064a794893b9ff243e6846273d7b 100644 (file)
@@ -28,7 +28,7 @@
                 xmlns:httpd="http://httpd.apache.org/xsl/manual"
                 xmlns:set="http://exslt.org/sets"
                 xmlns:str="http://exslt.org/strings"
-                xmlns="http://www.w3.org/1999/xhtml"
+                xmlns=""
                 exclude-result-prefixes="exslt func httpd set str">
 
 <!-- ======================================================================= -->
@@ -36,7 +36,7 @@
 <!-- Builds the .htaccess overridable directive index                        -->
 <!-- ======================================================================= -->
 <xsl:template match="overrideindex">
-<html xml:lang="{$doclang}" lang="{$doclang}">
+<html lang="{$doclang}">
     <xsl:call-template name="head"/>&lf;
 
     <xsl:variable name="directives"
index 84cf20d502cd1f7691cebdb306586b9fd02bb08f..3096517bedcd671fad30d1073f1cdf1b2efd4951 100644 (file)
 ]>
 <xsl:stylesheet version="1.0"
               xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
-                  xmlns="http://www.w3.org/1999/xhtml">
+                  xmlns="">
 
 <!-- ==================================================================== -->
 <!-- <quickreference>                                                     -->
 <!-- Builds the directive quickreference page                             -->
 <!-- ==================================================================== -->
 <xsl:template match="quickreference">
-<html xml:lang="{$doclang}" lang="{$doclang}">
+<html lang="{$doclang}">
     <xsl:call-template name="head"/>&lf;
 
     <body id="directive-index">&lf;
index f72dafcbf889e2e3d867fd98153b8556bdd6f306..67f87235b993dd02a981ed03a215c0a4d92e5c27 100644 (file)
 ]>
 <xsl:stylesheet version="1.0"
               xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
-                  xmlns="http://www.w3.org/1999/xhtml">
+                  xmlns="">
 
 <!-- ==================================================================== -->
 <!-- <sitemap>                                                            -->
 <!-- Process an entire document into an HTML page                         -->
 <!-- ==================================================================== -->
 <xsl:template match="/sitemap">
-<html xml:lang="{$doclang}" lang="{$doclang}">
+<html lang="{$doclang}">
     <xsl:call-template name="head" />&lf;
 
     <body id="manual-page">&lf;
index 35e728e6a2ba13d89ee8634eded4abbafe18171b..ffc0008c8a3db2e73a24c8b7e3a02f7b226f330f 100644 (file)
 ]>
 <xsl:stylesheet version="1.0"
               xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
-                  xmlns="http://www.w3.org/1999/xhtml">
+                  xmlns="">
 
 <!-- ==================================================================== -->
 <!-- <modulesynopsis>                                                     -->
 <!-- Process an entire document into an HTML page                         -->
 <!-- ==================================================================== -->
 <xsl:template match="modulesynopsis">
-<html xml:lang="{$doclang}" lang="{$doclang}">
+<html lang="{$doclang}">
     <xsl:call-template name="head" />&lf;
 
     <body>&lf;
         <!-- 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
                 </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
                 </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>