svn commit: rev 21306 - avalon/trunk/central/system/themes/modern/html

[email protected]
Newsgroups gmane.comp.jakarta.avalon.cvs
Message-ID <[email protected]>
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>
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.