// TODO: SVG style elements
boolean notSVG = resource.getMediaType().equals("image/svg+xml");
if (notSVG) {
engine.pushElement(xhtmlns, "html", null);
engine.pushElement(xhtmlns, "head", null);
engine.popElement();
}
getBody().cascade(engine);
if (notSVG) {