This is an automated email from the ASF dual-hosted git repository.

wave pushed a commit to branch AOO41X
in repository https://gitbox.apache.org/repos/asf/openoffice.git


The following commit(s) were added to refs/heads/AOO41X by this push:
     new c268769577 Title as alt of image tag instead of Desc
c268769577 is described below

commit c26876957791feed195baced027e56873d0c7372
Author: Bidouille <[email protected]>
AuthorDate: Mon Jul 1 17:16:35 2019 +0200

    Title as alt of image tag instead of Desc
---
 main/filter/source/xslt/odf2xhtml/export/xhtml/body.xsl | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/main/filter/source/xslt/odf2xhtml/export/xhtml/body.xsl 
b/main/filter/source/xslt/odf2xhtml/export/xhtml/body.xsl
index a2373c5685..a19c0d55fe 100644
--- a/main/filter/source/xslt/odf2xhtml/export/xhtml/body.xsl
+++ b/main/filter/source/xslt/odf2xhtml/export/xhtml/body.xsl
@@ -1509,13 +1509,13 @@
                        </xsl:if>
                        <xsl:attribute name="alt">
                                <xsl:choose>
-                                       <xsl:when test="../svg:desc">
-                                               <xsl:value-of 
select="../svg:desc"/>
+                                       <xsl:when test="../@svg:title">
+                                               <xsl:value-of 
select="../@svg:title"/>
                                        </xsl:when>
                                        <xsl:otherwise>
                                                <xsl:message>
        Accessibility Warning:
-                No alternate text ('svg:desc' element) set for
+                No alternate text ('svg:title' element) set for
                 image '
                                                        <xsl:value-of 
select="@xlink:href"/>'!
                                                </xsl:message>

Reply via email to