]> granicus.if.org Git - docbook-dsssl/commitdiff
Use the graphicsize.extension parameter
authorNorman Walsh <ndw@nwalsh.com>
Wed, 4 Sep 2002 10:57:07 +0000 (10:57 +0000)
committerNorman Walsh <ndw@nwalsh.com>
Wed, 4 Sep 2002 10:57:07 +0000 (10:57 +0000)
xsl/html/graphics.xsl

index 24a3d63aeb547804168f2dd1a11158d006482239..e3f88ac617a6314dedd930d6f46cb94b52cb973e 100644 (file)
   <xsl:variable name="intrinsicwidth">
     <!-- This funny compound test works around a bug in XSLTC -->
     <xsl:choose>
-      <xsl:when test="$use.extensions != 0">
+      <xsl:when test="$use.extensions != 0 and $graphicsize.extension != 0">
         <xsl:choose>
           <xsl:when test="function-available('simg:getWidth')">
             <xsl:value-of select="simg:getWidth(simg:new($filename),
   <xsl:variable name="intrinsicdepth">
     <!-- This funny compound test works around a bug in XSLTC -->
     <xsl:choose>
-      <xsl:when test="$use.extensions != 0">
+      <xsl:when test="$use.extensions != 0 and $graphicsize.extension != 0">
         <xsl:choose>
           <xsl:when test="function-available('simg:getDepth')">
             <xsl:value-of select="simg:getDepth(simg:new($filename),