You are viewing a plain text version of this content. The canonical link for it is here.
Posted to svn@forrest.apache.org by cr...@apache.org on 2004/08/29 09:26:19 UTC

svn commit: rev 37170 - forrest/trunk/src/core/context/resources/stylesheets

Author: crossley
Date: Sun Aug 29 00:26:18 2004
New Revision: 37170

Modified:
   forrest/trunk/src/core/context/resources/stylesheets/absolutize-linkmap.xsl
Log:
Do not stip leading slash from an absolute path.
Issue: FOR-268 FOR-269


Modified: forrest/trunk/src/core/context/resources/stylesheets/absolutize-linkmap.xsl
==============================================================================
--- forrest/trunk/src/core/context/resources/stylesheets/absolutize-linkmap.xsl	(original)
+++ forrest/trunk/src/core/context/resources/stylesheets/absolutize-linkmap.xsl	Sun Aug 29 00:26:18 2004
@@ -61,8 +61,8 @@
     <xsl:attribute name="href">
       <xsl:choose>
         <xsl:when test="starts-with(., '/')">
-          <!-- already is an absolute path, strip the leading slash -->
-          <xsl:value-of select="substring-after(., '/')"/>
+          <!-- already is an absolute path -->
+          <xsl:value-of select="."/>
         </xsl:when>
         <xsl:otherwise>
           <!-- the path needs to be absolutized -->