Hi Roberto, Roberto Villarreal <[email protected]> wrote on 02/27/2009 06:45:43 PM:
> I have an SVG file that is wrapping a PNG via xlink:href=[filename]. > I can load this image in perfectly and display it. Per the > PrettyPrinter, the document that is displaying perfectly is: So the file displays fine in Squiggle right? > Now, I want to display a border around it before displaying it. I > modify the DOM in code, and get the resulting SVG that gives > the "bad" image described above: I suspect the problem is the DOM manipulation code. My first guess is that it's damaging the xlink:href attributes on the image element. It's hard to know without seeing that code. > Now, there are only two differences between these two SVGs that I can > see (and keep in mind these both open correctly in an external > viewer): Well the open fine in Batik's squiggle as well. So it almost has to be your DOM manipulation code. Writing a 'broken' dom out and reading it back will often fix problems with namespaces. > I can also post code if > need be, but this *seems* to be an issue of how Batik interacts with > SVG itself. I think it's the code.
