]> git.ipfire.org Git - thirdparty/apache/httpd.git/commitdiff
Revert r1842160
authorChristophe Jaillet <jailletc36@apache.org>
Thu, 27 Sep 2018 20:42:24 +0000 (20:42 +0000)
committerChristophe Jaillet <jailletc36@apache.org>
Thu, 27 Sep 2018 20:42:24 +0000 (20:42 +0000)
Some rules to help me detect un-needed links to directives, or missing ones were sent by error

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

docs/manual/style/xsl/common.xsl

index e3fe27fd0d92480823694a45ac04655607cb8709..f0a0cea5a9b4645f84becdc7eeca56041dd9070e 100644 (file)
@@ -542,7 +542,7 @@ if (typeof(prettyPrint) !== 'undefined') {
 <!-- ==================================================================== -->
 <!-- handle subsections (lower level headings)                            -->
 <!-- ==================================================================== -->
-<xsl:template match="section/section" priority="3">
+<xsl:template match="section/section">
 <!-- Section heading -->
 <h3>
     <xsl:choose>
@@ -567,7 +567,7 @@ if (typeof(prettyPrint) !== 'undefined') {
 <!-- ==================================================================== -->
 <!-- handle subsubsections (h4)                                           -->
 <!-- ==================================================================== -->
-<xsl:template match="section/section/section" priority="4">
+<xsl:template match="section/section/section">
 <!-- Section heading -->
 <h4>
     <xsl:choose>
@@ -900,31 +900,6 @@ if (typeof(prettyPrint) !== 'undefined') {
         </xsl:variable>
 
         <xsl:choose>
-        <!-- No link if within the block that describe the directive itself -->
-        <xsl:when test="$in-modulesynopsis and normalize-space(.) = ../../name">
-                <xsl:if test="@type='section'">&lt;</xsl:if>
-                <xsl:value-of select="."/>
-                <xsl:if test="@type='section'">&gt;</xsl:if>
-                <xsl:message>Candidate (remove ref): <xsl:value-of select="."/></xsl:message>
-        </xsl:when>
-        <xsl:when test="$in-modulesynopsis and normalize-space(.) = ../../../name">
-                <xsl:if test="@type='section'">&lt;</xsl:if>
-                <xsl:value-of select="."/>
-                <xsl:if test="@type='section'">&gt;</xsl:if>
-                <xsl:message>Candidate (remove ref): <xsl:value-of select="."/></xsl:message>
-        </xsl:when>
-        <xsl:when test="$in-modulesynopsis and normalize-space(.) = ../../../../name">
-                <xsl:if test="@type='section'">&lt;</xsl:if>
-                <xsl:value-of select="."/>
-                <xsl:if test="@type='section'">&gt;</xsl:if>
-                <xsl:message>Candidate (remove ref): <xsl:value-of select="."/></xsl:message>
-        </xsl:when>
-        <xsl:when test="$in-modulesynopsis and normalize-space(.) = ../../../../../name">
-                <xsl:if test="@type='section'">&lt;</xsl:if>
-                <xsl:value-of select="."/>
-                <xsl:if test="@type='section'">&gt;</xsl:if>
-                <xsl:message>Candidate (REMOVE ref): <xsl:value-of select="."/></xsl:message>
-        </xsl:when>
         <xsl:when test="$in-modulesynopsis and normalize-space(@module) = /modulesynopsis/name">
             <a href="#{$lowerdirective}">
                 <xsl:if test="@type='section'">&lt;</xsl:if>
@@ -942,13 +917,6 @@ if (typeof(prettyPrint) !== 'undefined') {
         </xsl:choose>
     </xsl:when>
 
-    <!-- Missing module reference -->
-    <xsl:when test="$in-modulesynopsis and normalize-space(.) != ../../../name">
-        <xsl:if test="@type='section'">&lt;</xsl:if>
-        <xsl:value-of select="."/>
-        <xsl:if test="@type='section'">&gt;</xsl:if>
-        <xsl:message>Candidate (ADD ref): <xsl:value-of select="."/></xsl:message>
-    </xsl:when>
     <xsl:otherwise>
         <xsl:if test="@type='section'">&lt;</xsl:if>
         <xsl:value-of select="."/>