forrest-svn mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From cross...@apache.org
Subject svn commit: r290630 - /forrest/trunk/main/webapp/resources/stylesheets/absolutize-linkmap.xsl
Date Wed, 21 Sep 2005 06:30:09 GMT
Author: crossley
Date: Tue Sep 20 23:30:04 2005
New Revision: 290630

URL: http://svn.apache.org/viewcvs?rev=290630&view=rev
Log:
If people use absolute path URIs in site.xml then will get double-slash (FOR-271)
and also incur the wrath of FOR-677.
Reverted the change made at r37170.

Modified:
    forrest/trunk/main/webapp/resources/stylesheets/absolutize-linkmap.xsl

Modified: forrest/trunk/main/webapp/resources/stylesheets/absolutize-linkmap.xsl
URL: http://svn.apache.org/viewcvs/forrest/trunk/main/webapp/resources/stylesheets/absolutize-linkmap.xsl?rev=290630&r1=290629&r2=290630&view=diff
==============================================================================
--- forrest/trunk/main/webapp/resources/stylesheets/absolutize-linkmap.xsl (original)
+++ forrest/trunk/main/webapp/resources/stylesheets/absolutize-linkmap.xsl Tue Sep 20 23:30:04
2005
@@ -62,8 +62,8 @@
     <xsl:attribute name="href">
       <xsl:choose>
         <xsl:when test="starts-with(., '/')">
-          <!-- already is an absolute path -->
-          <xsl:value-of select="."/>
+          <!-- already is an absolute path, strip the leading slash -->
+          <xsl:value-of select="substring-after(., '/')"/>
         </xsl:when>
         <xsl:otherwise>
           <!-- the path needs to be absolutized -->



Mime
View raw message