]> granicus.if.org Git - docbook-dsssl/commitdiff
Fixed bug #1640428: added 'url(...)' around the image path.
authorMauritz Jeanson <mj@johanneberg.com>
Sat, 24 Feb 2007 10:12:44 +0000 (10:12 +0000)
committerMauritz Jeanson <mj@johanneberg.com>
Sat, 24 Feb 2007 10:12:44 +0000 (10:12 +0000)
Fixed incorrect 'alt' attribute.

xsl/extensions/xalan27/src/com/nwalsh/xalan/FormatGraphicCallout.java

index a4f83bd41cabd61e5e8383aa2ec86fa778ae7f5a..6686b36b9018fcf93cb2a12bfbd0c9cc007550da 100644 (file)
@@ -57,9 +57,9 @@ public class FormatGraphicCallout extends FormatCallout {
          ns = foURI;
          prefix = "fo:"; // FIXME: this could be a problem...
          imgName = "external-graphic";
-         imgAttr.addAttribute("", "src", "src", "CDATA",
-                              graphicsPath + num + graphicsExt);
-         imgAttr.addAttribute("", "alt", "alt", "CDATA", label);
+         imgAttr.addAttribute("", "src", "src", "CDATA", "url(" +
+                              graphicsPath + num + graphicsExt + ")");
+
        } else {
          ns = "";
          prefix = "";