String message = formatMessage(base, code, params);
return getBrokenLinkDocument(message);
}
public SVGDocument getBrokenLinkDocument(String message) {
SVGDocument doc = (SVGDocument)DOMUtilities.deepCloneDocument
(svgDoc, svgDoc.getImplementation());
Element infoE = doc.getElementById("__More_About");
Element title = doc.createElementNS(SVGConstants.SVG_NAMESPACE_URI,
SVGConstants.SVG_TITLE_TAG);
title.appendChild(doc.createTextNode
(Messages.formatMessage
(MSG_BROKEN_LINK_TITLE, null)));
Element desc = doc.createElementNS(SVGConstants.SVG_NAMESPACE_URI,
SVGConstants.SVG_DESC_TAG);
desc.appendChild(doc.createTextNode(message));
infoE.insertBefore(desc, infoE.getFirstChild());
infoE.insertBefore(title, desc);
return doc;
}