int namespaces[] = new int[1];
if (foStylesheet) {
imgName = namePool.allocate("fo", foURI, "external-graphic");
imgAttr = new AttributeCollection(namePool);
imgAttr.addAttribute("", "", "src", "CDATA",
graphicsPath + num + graphicsExt);
} else {
imgName = namePool.allocate("", "", "img");
imgAttr = new AttributeCollection(namePool);
imgAttr.addAttribute("", "", "src", "CDATA",