cocoon-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From vgritse...@apache.org
Subject 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
Date Fri, 21 Dec 2007 20:43:22 GMT
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) &gt; 0">
-        <a href="{$link}"><xsl:value-of select="@name"/></a>
+      <xsl:when test="string-length(@href) &gt; 0">
+        <a href="{@href}"><xsl:value-of select="@name"/></a>
       </xsl:when>
       <xsl:otherwise>
         <xsl:value-of select="@name"/>



Mime
View raw message