From 66df10627643f14ea2b14e1fb511a55be7f90d1b Mon Sep 17 00:00:00 2001 From: Mauritz Jeanson <mj@johanneberg.com> Date: Sat, 24 Feb 2007 10:12:44 +0000 Subject: [PATCH] Fixed bug #1640428: added 'url(...)' around the image path. Fixed incorrect 'alt' attribute. --- .../xalan27/src/com/nwalsh/xalan/FormatGraphicCallout.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/xsl/extensions/xalan27/src/com/nwalsh/xalan/FormatGraphicCallout.java b/xsl/extensions/xalan27/src/com/nwalsh/xalan/FormatGraphicCallout.java index a4f83bd41..6686b36b9 100644 --- a/xsl/extensions/xalan27/src/com/nwalsh/xalan/FormatGraphicCallout.java +++ b/xsl/extensions/xalan27/src/com/nwalsh/xalan/FormatGraphicCallout.java @@ -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 = ""; -- 2.40.0