[Yanel-commits] rev 44098 -
public/yanel/trunk/src/contributions/resources/search/htdocs
michi at wyona.com
michi at wyona.com
Mon Aug 10 15:04:43 CEST 2009
Author: michi
Date: 2009-08-10 15:04:43 +0200 (Mon, 10 Aug 2009)
New Revision: 44098
Modified:
public/yanel/trunk/src/contributions/resources/search/htdocs/results2xhtml.xsl
Log:
omit leading slash
Modified: public/yanel/trunk/src/contributions/resources/search/htdocs/results2xhtml.xsl
===================================================================
--- public/yanel/trunk/src/contributions/resources/search/htdocs/results2xhtml.xsl 2009-08-10 12:24:43 UTC (rev 44097)
+++ public/yanel/trunk/src/contributions/resources/search/htdocs/results2xhtml.xsl 2009-08-10 13:04:43 UTC (rev 44098)
@@ -60,7 +60,7 @@
<xsl:template match="y:result">
<li>
- <a><xsl:attribute name="href"><xsl:choose><xsl:when test="starts-with(@url, 'http')"><xsl:value-of select="@url"/></xsl:when><xsl:otherwise><xsl:value-of select="$yarep.back2realm"/><xsl:value-of select="@url"/></xsl:otherwise></xsl:choose></xsl:attribute><xsl:choose><xsl:when test="y:title"><xsl:value-of select="y:title"/></xsl:when><xsl:otherwise><xsl:value-of select="@url"/></xsl:otherwise></xsl:choose></a>
+ <a><xsl:attribute name="href"><xsl:choose><xsl:when test="starts-with(@url, 'http')"><xsl:value-of select="@url"/></xsl:when><xsl:otherwise><xsl:value-of select="$yarep.back2realm"/><xsl:value-of select="substring(@url, 2)"/><!-- NOTE: Omit leading slash --></xsl:otherwise></xsl:choose></xsl:attribute><xsl:choose><xsl:when test="y:title"><xsl:value-of select="y:title"/></xsl:when><xsl:otherwise><xsl:value-of select="@url"/></xsl:otherwise></xsl:choose></a>
</li>
</xsl:template>
More information about the Yanel-commits
mailing list