]> granicus.if.org Git - docbook-dsssl/commitdiff
Added test to avoid "Undefined variable: callout.icon.size" messages when generating...
authorMauritz Jeanson <mj@johanneberg.com>
Thu, 26 Jul 2007 21:34:48 +0000 (21:34 +0000)
committerMauritz Jeanson <mj@johanneberg.com>
Thu, 26 Jul 2007 21:34:48 +0000 (21:34 +0000)
xsl-java/saxon65/src/com/nwalsh/saxon/Verbatim.java

index 9470f8acffa1192f4e94604291360a2a109a0719..21a017cbbd7e204d16345a9f873fc3f8ea2221c0 100644 (file)
@@ -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,