]> granicus.if.org Git - apache/commitdiff
Fix broken link to rewritemap in rewritelock description
authorAndré Malo <nd@apache.org>
Fri, 20 Sep 2002 03:01:22 +0000 (03:01 +0000)
committerAndré Malo <nd@apache.org>
Fri, 20 Sep 2002 03:01:22 +0000 (03:01 +0000)
of the quickreference.
Relative anchors to directives may only be set, if we're
actually transforming the particular <modulesynopsis> document.

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

docs/manual/mod/quickreference.html.en
docs/manual/style/xsl/common.xsl

index 70dc9b814184d08b27c336645fdd18386924b4fc..1a6e96fac838d63bfad712aace552c2c6128943c 100644 (file)
@@ -909,7 +909,7 @@ a resource</td></tr>
                Enables or disables runtime rewriting engine</td></tr>
 <tr class="even"><td><a href="mod_rewrite.html#rewritelock" style="text-decoration: none">RewriteLock <em>file-path</em></a></td><td /><td>E</td><td>s</td></tr><tr class="even"><td colspan="4">
                  
-               Sets the name of the lock file used for <code class="directive"><a href="#rewritemap">RewriteMap</a></code>
+               Sets the name of the lock file used for <code class="directive"><a href="../mod/mod_rewrite.html#rewritemap">RewriteMap</a></code>
 synchronization</td></tr>
 <tr class="odd"><td><a href="mod_rewrite.html#rewritelog" style="text-decoration: none">RewriteLog <em>file-path</em></a></td><td /><td>E</td><td>sv</td></tr><tr class="odd"><td colspan="4">
                  
index 713744de0da4566fac6e97ff8841cd933c512948..b8755d8aee6ab24ef6ab51be87c6d1080ed21888 100644 (file)
   <xsl:include href="synopsis.xsl"/>
   <xsl:include href="sitemap.xsl"/>
   <xsl:include href="quickreference.xsl"/>
+  
+  <!-- make sure, we set relative anchors
+       only, if we're actually transforming
+       a modulefile (see <directive>) -->
+  <xsl:variable name="in-modulesynopsis">
+    <xsl:if test="/modulesynopsis">1</xsl:if>
+  </xsl:variable>
 
   <!--                                                            -->
   <!--    Utility templates for constructing pages                -->
         <xsl:variable name="lowerdirective" select="translate(., $uppercase, $lowercase)"/>
 
         <xsl:choose>
-          <xsl:when test="@module = /modulesynopsis/name">
+          <xsl:when test="$in-modulesynopsis = '1' and @module = /modulesynopsis/name">
             <a href="#{$lowerdirective}">
               <xsl:if test="@type='section'">&lt;</xsl:if>
               <xsl:value-of select="."/>