batik-users@xmlgraphics.apache.org
[Top] [All Lists]

Re: BridgeException afer deepCloneDocument

Subject: Re: BridgeException afer deepCloneDocument
From: "Kenneth B. Harwood"
Date: Thu, 18 Aug 2005 12:20:48 -0700
Fixed.
 
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= "" // 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@xxxxxxxxx>
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.
<Prev in Thread] Current Thread [Next in Thread>
  • Re: BridgeException afer deepCloneDocument, Kenneth B. Harwood <=