You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@lenya.apache.org by gr...@apache.org on 2005/06/26 11:57:42 UTC

svn commit: r201777 - /lenya/branches/BRANCH_1_2_X/src/webapp/lenya/pubs/default/xslt/xhtml2xhtml.xsl

Author: gregor
Date: Sat Jun 25 11:25:30 2005
New Revision: 201777

URL: http://svn.apache.org/viewcvs?rev=201777&view=rev
Log:
Explicitly set alt tags for images, and title for assets. This resolves http://issues.apache.org/bugzilla/show_bug.cgi?id=35412

Modified:
    lenya/branches/BRANCH_1_2_X/src/webapp/lenya/pubs/default/xslt/xhtml2xhtml.xsl

Modified: lenya/branches/BRANCH_1_2_X/src/webapp/lenya/pubs/default/xslt/xhtml2xhtml.xsl
URL: http://svn.apache.org/viewcvs/lenya/branches/BRANCH_1_2_X/src/webapp/lenya/pubs/default/xslt/xhtml2xhtml.xsl?rev=201777&r1=201776&r2=201777&view=diff
==============================================================================
--- lenya/branches/BRANCH_1_2_X/src/webapp/lenya/pubs/default/xslt/xhtml2xhtml.xsl (original)
+++ lenya/branches/BRANCH_1_2_X/src/webapp/lenya/pubs/default/xslt/xhtml2xhtml.xsl Sat Jun 25 11:25:30 2005
@@ -74,7 +74,7 @@
    </xsl:variable>
    <div class="asset">
        <xsl:text>&#160;</xsl:text>
-       <a href="{$nodeid}/{@src}">
+       <a href="{$nodeid}/{@src}" title="{text()}">
          <xsl:value-of select="text()"/>
        </a>
        (<xsl:value-of select="number($extent)"/>KB)
@@ -104,6 +104,9 @@
           <xsl:choose>
             <xsl:when test="@name != ''">
               <xsl:value-of select="@name"/>
+            </xsl:when>
+            <xsl:when test="@title != ''">
+              <xsl:value-of select="@title"/>
             </xsl:when>
             <xsl:otherwise>
               <xsl:value-of select="dc:metadata/dc:title"/>                    



---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@lenya.apache.org
For additional commands, e-mail: commits-help@lenya.apache.org