Dudka Tetyana wrote:
Yes, âstylesheet.css' is in the same directory, otherwise I try to use an absolute URI, but result is the same.

I donât load SVG document from anywhere, I  do this

DOMImplementation impl = SVGDOMImplementation.getDOMImplementation();

String svgNS = SVGDOMImplementation.SVG_NAMESPACE_URI;

Document doc = impl.createDocument(svgNS, "svg", null);

I need to do everything in JAVA application.

Ok, I looked at some of the code. I'm 99% sure you need to give the document a base url, otherwise it can't resolve the location of the stylesheet, even if it is absolute (this part is a bug in Batik).

   Try adding the following:
import org.apache.batik.dom.svg;

   ((SVGOMDocument)doc).setURLObject
        (new URL("something:that/makes/sense"));


--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]



Reply via email to