]> granicus.if.org Git - docbook-dsssl/commitdiff
Problem:
authorMichael Smith <xmldoc@users.sourceforge.net>
Wed, 5 Apr 2006 03:19:10 +0000 (03:19 +0000)
committerMichael Smith <xmldoc@users.sourceforge.net>
Wed, 5 Apr 2006 03:19:10 +0000 (03:19 +0000)
  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/fo/graphics.xsl

index 756a7d881ea4bc7abb6d12f65f09015fe0952dcd..4bc96a7d5d4eb93ade9d5d694ccbe48648aba653 100644 (file)
         <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'"/>