]> granicus.if.org Git - apache/commitdiff
fix xsl error (although xalan doesn't complain it).
authorAndre Malo <nd@apache.org>
Thu, 9 Jan 2003 04:16:24 +0000 (04:16 +0000)
committerAndre Malo <nd@apache.org>
Thu, 9 Jan 2003 04:16:24 +0000 (04:16 +0000)
according to the spec it's not allowed to bind the same
variable twice or more within the same scope.
(<http://www.w3.org/TR/xslt#local-variables>)

Reported by:  Michael Schr�pl <Michael.Schroepl@telekurs.de>
Submitted by: Astrid Ke�ler
Reviewed by:  /me ;-)

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

docs/manual/style/xsl/moduleindex.xsl

index 941969c04196e60395586581bc8724e948767a68..8d863d10e35b572005b0080b13ad554d1f54f213 100644 (file)
 <xsl:text>
 </xsl:text> <!-- insert line break -->
 
-            <xsl:variable name="modules" select="document(sitemap/category[@id='modules']/modulefilelist/modulefile)/modulesynopsis[status='MPM' and name != 'mpm_common']"/>
+            <xsl:variable name="mpmmodules" select="document(sitemap/category[@id='modules']/modulefilelist/modulefile)/modulesynopsis[status='MPM' and name != 'mpm_common']"/>
             <xsl:variable name="translist">
               <xsl:call-template name="module-translist">
-                <xsl:with-param name="modules" select="$modules"/>
+                <xsl:with-param name="modules" select="$mpmmodules"/>
               </xsl:call-template>
             </xsl:variable>
 
-            <xsl:for-each select="$modules">
+            <xsl:for-each select="$mpmmodules">
             <xsl:sort select="substring-before(substring-after($translist, concat('- ', translate(normalize-space(name),$lowercase,$uppercase), ' ')), ' -')"/>
 
               <dt>