Hi, On Tue, 2005-07-19 at 16:48 +0200, Urs Reupke wrote: > Now, I believe this is a problem with the base URI of the document - > when converting from another XML-implementation, the (which did not > exist in the first place, since the document is created in memory) URI > is lost, thus Batik has no point of reference. > Is this assumption correct?
I am not sure if the error is because the base URI, since the Solar is embeded within the same doc. It become problem when the referenced resources is not within/embeded on the same doc However, to set the base URI there is two ways (you can choose either one) (1) // this is for DOM document SVGOMDocument omDoc = (SVGOMDocument)doc; omDoc.setURLObject(newURL); (2) // this is for SAX Parser factory SAXSVGDocumentFactory f = new SAXSVGDocumentFactory(parser); doc = f.createSVGDocument(uri,reader); Regards Tonny Kohar -- Sketsa SVG Graphics Editor http://www.kiyut.com --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
