xmlgraphics-batik-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Kenneth B. Harwood" <run10ks...@comcast.net>
Subject Re: BridgeException afer deepCloneDocument
Date Thu, 18 Aug 2005 19:20:48 GMT

Thanks TD.  Your guidance set me on the right course.  My code now looks like this:

  SVGOMDocument doc1= (SVGOMDocument) jSVGCanvas1.getSVGDocument();
   DOMImplementation imp= doc1.getImplementation();
   SVGOMDocument doc2=   (SVGOMDocument) deepCloneDocument(doc1, imp);
   URL url= doc1.getURLObject();    // get the source doc's URI
   doc2.setURLObject(url);               // put it in the copy's URI
   setSVGDocument(doc2);              // bravo!

----- Original Message ----- 
From: "Thomas DeWeese" <Thomas.DeWeese@Kodak.com>
Sent: Thursday, August 18, 2005 2:49 AM

> As I said earlier for internal references
> (URL's that start with '#') or absolute references
> (URL's that start with '<protocol>://') it shouldn't
> be needed and I consider all such cases to be errors.

Could you please be more specific?  Which do you
consider to be in *error*: the API-rejected SVG file,
the SVG spec, or the batik API?

> The most logical thing would be the same as
> the source documents.  However this would only
> 'hide' the problem (which may be all you are
> interested in doing).

Yes.  I guess I've hid the problem. I'm curious 
about what it would take to *fix* the problem.

>    This isn't an SVG URI thing it's how all
> URL/URI's work (or are supposed to work).


Thanks again.

 - Ken H.
View raw message