]> granicus.if.org Git - docbook-dsssl/commitdiff
Added condition to prevent "Failed to interpret image" messages (SVG is not supported
authorMauritz Jeanson <mj@johanneberg.com>
Fri, 17 Dec 2010 18:18:19 +0000 (18:18 +0000)
committerMauritz Jeanson <mj@johanneberg.com>
Fri, 17 Dec 2010 18:18:19 +0000 (18:18 +0000)
by the graphic size extension).

xsl/html/graphics.xsl

index 660bf92ad0232dbf556ba3c306bd854371b0deb7..ac0550f48204bdff622e3c9cf0d51f3ca6fb4c7d 100644 (file)
   <xsl:variable name="realintrinsicwidth">
     <!-- This funny compound test works around a bug in XSLTC -->
     <xsl:choose>
-      <xsl:when test="$use.extensions != 0 and $graphicsize.extension != 0">
+      <xsl:when test="$use.extensions != 0 and $graphicsize.extension != 0
+                      and not(@format='SVG')">
         <xsl:choose>
           <xsl:when test="function-available('simg:getWidth')">
             <xsl:value-of select="simg:getWidth(simg:new($filename.for.graphicsize),
   <xsl:variable name="intrinsicdepth">
     <!-- This funny compound test works around a bug in XSLTC -->
     <xsl:choose>
-      <xsl:when test="$use.extensions != 0 and $graphicsize.extension != 0">
+      <xsl:when test="$use.extensions != 0 and $graphicsize.extension != 0
+                      and not(@format='SVG')">
         <xsl:choose>
           <xsl:when test="function-available('simg:getDepth')">
             <xsl:value-of select="simg:getDepth(simg:new($filename.for.graphicsize),