You are viewing a plain text version of this content. The canonical link for it is here.
Posted to cvs@cocoon.apache.org by vg...@apache.org on 2007/12/21 21:43:22 UTC
svn commit: r606303 -
/cocoon/trunk/blocks/cocoon-samples-style/cocoon-samples-style-default/src/main/resources/COB-INF/common/style/xsl/html/simple-samples2html.xsl
Author: vgritsenko
Date: Fri Dec 21 12:43:21 2007
New Revision: 606303
URL: http://svn.apache.org/viewvc?rev=606303&view=rev
Log:
Remove rewriting of samples links.
This does not work in blocks environment anyway: links would be re-written relative to the
current block (cocoon-samples-style-default) which is clearly not a desired effect.
Modified:
cocoon/trunk/blocks/cocoon-samples-style/cocoon-samples-style-default/src/main/resources/COB-INF/common/style/xsl/html/simple-samples2html.xsl
Modified: cocoon/trunk/blocks/cocoon-samples-style/cocoon-samples-style-default/src/main/resources/COB-INF/common/style/xsl/html/simple-samples2html.xsl
URL: http://svn.apache.org/viewvc/cocoon/trunk/blocks/cocoon-samples-style/cocoon-samples-style-default/src/main/resources/COB-INF/common/style/xsl/html/simple-samples2html.xsl?rev=606303&r1=606302&r2=606303&view=diff
==============================================================================
--- cocoon/trunk/blocks/cocoon-samples-style/cocoon-samples-style-default/src/main/resources/COB-INF/common/style/xsl/html/simple-samples2html.xsl (original)
+++ cocoon/trunk/blocks/cocoon-samples-style/cocoon-samples-style-default/src/main/resources/COB-INF/common/style/xsl/html/simple-samples2html.xsl Fri Dec 21 12:43:21 2007
@@ -182,20 +182,9 @@
<xsl:template match="sample">
- <xsl:variable name="link">
- <xsl:choose>
- <xsl:when test="starts-with(@href,'/')">
- <xsl:value-of select="concat($contextPath, @href)"/>
- </xsl:when>
- <xsl:otherwise>
- <xsl:value-of select="@href"/>
- </xsl:otherwise>
- </xsl:choose>
- </xsl:variable>
-
<xsl:choose>
- <xsl:when test="string-length($link) > 0">
- <a href="{$link}"><xsl:value-of select="@name"/></a>
+ <xsl:when test="string-length(@href) > 0">
+ <a href="{@href}"><xsl:value-of select="@name"/></a>
</xsl:when>
<xsl:otherwise>
<xsl:value-of select="@name"/>