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 2004/10/26 04:09:19 UTC

svn commit: rev 55559 - incubator/lenya/branches/BRANCH_1_2_X/src/webapp/lenya/pubs/default/xslt

Author: gregor
Date: Mon Oct 25 19:09:18 2004
New Revision: 55559

Modified:
   incubator/lenya/branches/BRANCH_1_2_X/src/webapp/lenya/pubs/default/xslt/xhtml2xhtml.xsl
Log:
#30000 Alt attribute not set for images

Modified: incubator/lenya/branches/BRANCH_1_2_X/src/webapp/lenya/pubs/default/xslt/xhtml2xhtml.xsl
==============================================================================
--- incubator/lenya/branches/BRANCH_1_2_X/src/webapp/lenya/pubs/default/xslt/xhtml2xhtml.xsl	(original)
+++ incubator/lenya/branches/BRANCH_1_2_X/src/webapp/lenya/pubs/default/xslt/xhtml2xhtml.xsl	Mon Oct 25 19:09:18 2004
@@ -15,7 +15,7 @@
   limitations under the License.
 -->
 
-<!-- $Id: xhtml2xhtml.xsl,v 1.12 2004/08/27 07:24:17 andreas Exp $ -->
+<!-- $Id$ -->
 
 <xsl:stylesheet version="1.0"
     xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
@@ -90,10 +90,10 @@
               <xsl:value-of select="$nodeid"/>/<xsl:value-of select="@data"/>
             </xsl:attribute>
             <xsl:attribute name="alt">
-              <!-- the overwritten title (stored in @name) has precedence over dc:title -->
+              <!-- the overwritten title (stored in @title) has precedence over dc:title -->
               <xsl:choose>
-                <xsl:when test="@name != ''">
-                  <xsl:value-of select="@name"/>
+                <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: lenya-cvs-unsubscribe@cocoon.apache.org
For additional commands, e-mail: lenya-cvs-help@cocoon.apache.org