]> granicus.if.org Git - apache/commitdiff
use the metafile to determine the relative path to manual-root.
authorAndré Malo <nd@apache.org>
Sat, 12 Apr 2003 14:35:50 +0000 (14:35 +0000)
committerAndré Malo <nd@apache.org>
Sat, 12 Apr 2003 14:35:50 +0000 (14:35 +0000)
the relativepath element becomes obsolete.

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

docs/manual/style/xsl/common.xsl

index 12b88d500863c7136651fd070647b01f259044cc..4fa05dd1f7ad7ddfaf997ac060ff7a127b5020e8 100644 (file)
   </xsl:variable>
 
   <!-- relative path to /manual/ -->
-  <xsl:variable name="path">
-    <xsl:choose>
-      <xsl:when test="*/relativepath/@href">
-        <xsl:value-of select="*/relativepath/@href"/>
-      </xsl:when>
-      <xsl:otherwise>
-        <xsl:value-of select="'..'"/>
-      </xsl:otherwise>
-    </xsl:choose>
-  </xsl:variable>
+  <xsl:variable name="path" select="document(/*/@metafile)/metafile/relpath" />
 
   <!-- load outsourced page types -->
   <xsl:include href="moduleindex.xsl"/>