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