]> granicus.if.org Git - apache/commitdiff
simplifications
authorAndré Malo <nd@apache.org>
Tue, 4 May 2004 22:59:55 +0000 (22:59 +0000)
committerAndré Malo <nd@apache.org>
Tue, 4 May 2004 22:59:55 +0000 (22:59 +0000)
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@103611 13f79535-47bb-0310-9956-ffa450edef68

docs/manual/style/xsl/sitemap.xsl

index 8aa6d0ce45bd987027c882ce7803959a0e45a980..46218931d99e8e349447ca46445115d07c683673 100644 (file)
               xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
                   xmlns="http://www.w3.org/1999/xhtml">
 
-<!-- If we use document() in the context of this xsl file, the contextual -->
-<!-- CWD is the xsl file containing directory. $basedir reflects the      -->
-<!-- manual root for that case.                                           -->
-<xsl:variable name="basedir" select="'../../'" />
-
 <!-- ==================================================================== -->
 <!-- <sitemap>                                                            -->
 <!-- Process an entire document into an HTML page                         -->
 <xsl:variable name="translist">
     <xsl:text>-</xsl:text>
     <xsl:for-each select="modulefile">
-        <xsl:variable name="current"
-            select="document(concat($basedir,'mod/',.))/modulesynopsis" />
+        <xsl:variable name="current" select="document(.)/modulesynopsis" />
    
         <xsl:text> </xsl:text>
         <xsl:value-of select="$current/name" />
 
 <xsl:for-each select="modulefile">
 <xsl:sort select="substring-before(substring-after($translist, concat('- ',
-    document(concat($basedir,'mod/',.))/modulesynopsis/name, ' ')), ' -')" />
+                  document(.)/modulesynopsis/name, ' ')), ' -')" />
 
-    <xsl:variable name="current" select="document(concat($basedir, 'mod/', .))
-                                         /modulesynopsis" />
+    <xsl:variable name="current" select="document(.)/modulesynopsis" />
 
     <xsl:if test="$current/status='MPM' and $current/name!='mpm_common'">
         <xsl:variable name="name" select="substring-before(substring-after(
 <ul>
 <xsl:for-each select="modulefile">
 <xsl:sort select="substring-before(substring-after($translist, concat('- ',
-    document(concat($basedir,'mod/',.))/modulesynopsis/name, ' ')), ' -')"/>
+                  document(.)/modulesynopsis/name, ' ')), ' -')"/>
 
-    <xsl:variable name="current" select="document(concat($basedir,'mod/',.))
-                                         /modulesynopsis" />
+    <xsl:variable name="current" select="document(.)/modulesynopsis" />
 
     <xsl:if test="$current/status!='MPM' and $current/status!='Core'">
         <li>