Garbage characters appear in content of Title attribute in HTML
output.
Cause:
Contents of Alt element, including line breaks, were being copied
over "as is" to value of Title attribute in HTML output. Line
breaks in Title appear a garbage characters when displayed as
pop-up "tool text".
Fix:
Added call to normalize-space() when transforming content of Alt
for HTML output. Closes #
1254532. Thanks to Sam Steingold for
reporting the problem.
<xsl:template name="generate.html.title">
<xsl:if test="alt">
<xsl:attribute name="title">
- <xsl:value-of select="alt"/>
+ <xsl:value-of select="normalize-space(alt)"/>
</xsl:attribute>
</xsl:if>
</xsl:template>