forrest-svn mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From thors...@apache.org
Subject svn commit: r386149 - /forrest/trunk/whiteboard/plugins/org.apache.forrest.themes.core/themes/common/html/branding-css-links.ft
Date Wed, 15 Mar 2006 19:33:26 GMT
Author: thorsten
Date: Wed Mar 15 11:33:26 2006
New Revision: 386149

URL: http://svn.apache.org/viewcvs?rev=386149&view=rev
Log:
FOR-832 - allowing to decide for the prefix of the url rewrite. Instead of *always* using
'themes/' one can specify now  <css prefix="yourPrefix/" .../>

Modified:
    forrest/trunk/whiteboard/plugins/org.apache.forrest.themes.core/themes/common/html/branding-css-links.ft

Modified: forrest/trunk/whiteboard/plugins/org.apache.forrest.themes.core/themes/common/html/branding-css-links.ft
URL: http://svn.apache.org/viewcvs/forrest/trunk/whiteboard/plugins/org.apache.forrest.themes.core/themes/common/html/branding-css-links.ft?rev=386149&r1=386148&r2=386149&view=diff
==============================================================================
--- forrest/trunk/whiteboard/plugins/org.apache.forrest.themes.core/themes/common/html/branding-css-links.ft
(original)
+++ forrest/trunk/whiteboard/plugins/org.apache.forrest.themes.core/themes/common/html/branding-css-links.ft
Wed Mar 15 11:33:26 2006
@@ -106,7 +106,19 @@
               </xsl:attribute>
             </xsl:otherwise>
           </xsl:choose>
-          <xsl:attribute name="href"> <xsl:value-of select="$root"/>themes/<xsl:value-of

+          <xsl:variable name="prefix">
+            <xsl:choose>
+              <xsl:when test="@prefix">
+                <xsl:value-of select="@prefix"/>
+              </xsl:when>
+              <xsl:otherwise>
+                themes/
+              </xsl:otherwise>
+            </xsl:choose>
+          </xsl:variable>
+          <xsl:attribute name="href"> <xsl:value-of 
+            select="$root"/><xsl:value-of 
+            select="normalize-space($prefix)"/><xsl:value-of 
             select="@url"/> </xsl:attribute>
           <xsl:if test="@media">
             <xsl:attribute name="media">



Mime
View raw message