forrest-svn mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From cross...@apache.org
Subject svn commit: r161406 - forrest/trunk/main/webapp/skins/pelt/xslt/html/site2xhtml.xsl
Date Fri, 15 Apr 2005 05:49:01 GMT
Author: crossley
Date: Thu Apr 14 22:49:00 2005
New Revision: 161406

URL: http://svn.apache.org/viewcvs?view=rev&rev=161406
Log:
Put the @title attribute on a link only if it is not empty.

Modified:
    forrest/trunk/main/webapp/skins/pelt/xslt/html/site2xhtml.xsl

Modified: forrest/trunk/main/webapp/skins/pelt/xslt/html/site2xhtml.xsl
URL: http://svn.apache.org/viewcvs/forrest/trunk/main/webapp/skins/pelt/xslt/html/site2xhtml.xsl?view=diff&r1=161405&r2=161406
==============================================================================
--- forrest/trunk/main/webapp/skins/pelt/xslt/html/site2xhtml.xsl (original)
+++ forrest/trunk/main/webapp/skins/pelt/xslt/html/site2xhtml.xsl Thu Apr 14 22:49:00 2005
@@ -483,7 +483,19 @@
 
           <xsl:choose>
             <xsl:when test="a">
-              <div class="menuitem"><a href="{a/@href}" title="{a/@title}"><xsl:value-of
select="a" /></a></div>
+              <div class="menuitem">
+                <a>
+                  <xsl:attribute name="href">
+                    <xsl:value-of select="a/@href"/>
+                  </xsl:attribute>
+                  <xsl:if test="a/@title!=''">
+                    <xsl:attribute name="title">
+                      <xsl:value-of select="a/@title"/>
+                    </xsl:attribute>
+                  </xsl:if>
+                  <xsl:value-of select="a"/>
+                </a>
+              </div>
             </xsl:when>
             <xsl:when test="div/@class='current'">
               <div class="menupage">



Mime
View raw message