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 2005/09/21 08:30:09 UTC
svn commit: r290630 -
/forrest/trunk/main/webapp/resources/stylesheets/absolutize-linkmap.xsl
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 -->