it's not working.. can anyone take a look?
this snippet is from a servlet that loads the svg.. i am sure that the
styleSheetURL is correct
protected SVGDocument loadMap(String fileName) {
Document doc = null;
try {
String parser = XMLResourceDescriptor.getXMLParserClassName();
SAXSVGDocumentFactory f = new SAXSVGDocumentFactory(parser);
String uri = fileName;
doc = f.createDocument(uri);
ProcessingInstruction pi =
doc.createProcessingInstruction("xml-stylesheet", "type=\"text/css\"href=\""
+ styleSheetURL + "\"");
doc.insertBefore(pi, doc.getDocumentElement());
} catch (IOException ex) {
ex.printStackTrace();
}
return (SVGDocument)doc;
}
--
View this message in context:
http://www.nabble.com/how-to-load-an-external-stylesheet--tf4300368.html#a12456428
Sent from the Batik - Users mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]