]> granicus.if.org Git - docbook-dsssl/commitdiff
Fix bug in contentdepth outputting empty height attribute.
authorBob Stayton <bobs@sagehill.net>
Sat, 3 Mar 2007 08:50:05 +0000 (08:50 +0000)
committerBob Stayton <bobs@sagehill.net>
Sat, 3 Mar 2007 08:50:05 +0000 (08:50 +0000)
xsl/html/graphics.xsl

index 49d481df554bbe80854fc23e4f71b765f433cb09..bbfbf3e27c2405338bdafdf6a21525bd5a98cee9 100644 (file)
@@ -917,12 +917,12 @@ valign: <xsl:value-of select="@valign"/></xsl:message>
   <xsl:choose>
     <xsl:when test="@contentwidth or @contentdepth">
       <!-- ignore @width/@depth, @scale, and @scalefit if specified -->
-      <xsl:if test="@contentwidth">
+      <xsl:if test="@contentwidth and $scaled.contentwidth != ''">
         <xsl:attribute name="width">
           <xsl:value-of select="$scaled.contentwidth"/>
         </xsl:attribute>
       </xsl:if>
-      <xsl:if test="@contentdepth">
+      <xsl:if test="@contentdepth and $scaled.contentdepth != ''">
         <xsl:attribute name="height">
           <xsl:value-of select="$scaled.contentdepth"/>
         </xsl:attribute>