From 46c788ab79b667f915d14f108edf5a12ffe56d5e Mon Sep 17 00:00:00 2001 From: Mauritz Jeanson Date: Thu, 26 Jul 2007 21:34:48 +0000 Subject: [PATCH] Added test to avoid "Undefined variable: callout.icon.size" messages when generating HTML. --- xsl-java/saxon65/src/com/nwalsh/saxon/Verbatim.java | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/xsl-java/saxon65/src/com/nwalsh/saxon/Verbatim.java b/xsl-java/saxon65/src/com/nwalsh/saxon/Verbatim.java index 9470f8acf..21a017cbb 100644 --- a/xsl-java/saxon65/src/com/nwalsh/saxon/Verbatim.java +++ b/xsl-java/saxon65/src/com/nwalsh/saxon/Verbatim.java @@ -374,10 +374,12 @@ public class Verbatim { graphicsMax = 0; } - // Get the callout icon size - varString = getVariable(context, "callout.icon.size"); - iconSize = varString; - + // Get the callout icon size (used for FO) + if (foStylesheet) { + varString = getVariable(context, "callout.icon.size"); + iconSize = varString; + } + fCallout = new FormatGraphicCallout(namePool, graphicsPath, graphicsExt, -- 2.40.0