You are viewing a plain text version of this content. The canonical link for it is here.
Posted to cvs@avalon.apache.org by ni...@apache.org on 2004/06/15 21:35:00 UTC
svn commit: rev 21306 - avalon/trunk/central/system/themes/modern/html
Author: niclas
Date: Tue Jun 15 12:35:00 2004
New Revision: 21306
Modified:
avalon/trunk/central/system/themes/modern/html/transform.xsl
Log:
Fixed so Absolute path in <a> works.
Modified: avalon/trunk/central/system/themes/modern/html/transform.xsl
==============================================================================
--- avalon/trunk/central/system/themes/modern/html/transform.xsl (original)
+++ avalon/trunk/central/system/themes/modern/html/transform.xsl Tue Jun 15 12:35:00 2004
@@ -166,7 +166,7 @@
<xsl:choose>
<!-- Test if a root reference -->
<xsl:when test="substring( @href, 1, 1 ) = '/'" >
- <xsl:attribute name="href"><xsl:value-of select="concat( $relativepath, @href)" /></xsl:attribute>
+ <xsl:attribute name="href"><xsl:value-of select="concat( $relativepath[position() = last()], @href)" /></xsl:attribute>
</xsl:when>
<xsl:otherwise>
<xsl:attribute name="href"><xsl:value-of select="@href" /></xsl:attribute>
---------------------------------------------------------------------
To unsubscribe, e-mail: cvs-unsubscribe@avalon.apache.org
For additional commands, e-mail: cvs-help@avalon.apache.org