fix fdo#39561

make html & xhtml consistent in treatment of svg:title -> image:alt tag
This commit is contained in:
Christophe Strobbe 2011-08-09 16:07:49 +01:00 committed by Noel Power
parent 2642cdbcab
commit 2eb2e571ab

View file

@ -1512,13 +1512,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>