Hi,
Well I must be DOM (Dutch for dumb). I want to insert a stylesheet reference into a DOM document:
DOMImplementation impl = SVGDOMImplementation.getDOMImplementation(); String svgNS = SVGDOMImplementation.SVG_NAMESPACE_URI; Document doc = impl.createDocument(svgNS, "svg", null); ProcessingInstruction PI = doc.createProcessingInstruction("xml-stylesheet", "type=\"text/css\" href=\"svg.css\" ?>"); doc.appendChild(PI);
But now the stylesheet ends up last, and doesn't work. My SVG are beautifull, but I have to move the stylesheet reference manually!
Can anybody help me out?
Try:
doc.insertBefore(PI, doc.getRootElement());
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]