You are viewing a plain text version of this content. The canonical link for it is here.
Posted to cvs@httpd.apache.org by nd...@apache.org on 2004/05/05 00:59:55 UTC
cvs commit: httpd-2.0/docs/manual/style/xsl sitemap.xsl
nd 2004/05/04 15:59:55
Modified: docs/manual/style/xsl sitemap.xsl
Log:
simplifications
Revision Changes Path
1.18 +5 -13 httpd-2.0/docs/manual/style/xsl/sitemap.xsl
Index: sitemap.xsl
===================================================================
RCS file: /home/cvs/httpd-2.0/docs/manual/style/xsl/sitemap.xsl,v
retrieving revision 1.17
retrieving revision 1.18
diff -u -u -r1.17 -r1.18
--- sitemap.xsl 4 May 2004 21:56:07 -0000 1.17
+++ sitemap.xsl 4 May 2004 22:59:55 -0000 1.18
@@ -23,11 +23,6 @@
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 -->
@@ -177,8 +172,7 @@
<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" />
@@ -204,10 +198,9 @@
<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(
@@ -227,10 +220,9 @@
<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>