When source has width="" (empty width) on imagedata, it ends up
getting converted to width="px" ("px" units with empty value) in
output.
Cause:
Stylesheets were not checking to see if width was non-empty.
Fix:
Stylesheets now check to see if value of width in source is
non-empty.
Affects:
This change affects FO output only. It causes width="auto"
output for width="" instances in source (instead of width="px").
<xsl:when test="contains(@width,'%')">
<xsl:value-of select="@width"/>
</xsl:when>
- <xsl:when test="@width">
+ <xsl:when test="@width and not(@width = '')">
<xsl:call-template name="length-spec">
<xsl:with-param name="length" select="@width"/>
<xsl:with-param name="default.units" select="'px'"/>