Hi Archie,

Archie Cobbs wrote:
I'm getting a weird problem when trying to use the SVGGraphics2D class.

[...] If the rendering includes an image,
I'm getting this output in the resulting XML (edited for brevity):

Note the "null:" prefix on the height and width attributes.

Has anyone seen anything weird like this?? I'm certainly not using
the string "null" as a namespace prefix anywhere, and in any case
it's Batik that adds those attributes. Another weird thing is:
why only width and height? "preserveAspectRatio" comes out fine...

I've looked at the code fairly closely and I can't see why this would happen. The only real difference I see is that I think width/height get set twice.


I suppose this is likely not a Batik bug... I'm using xalan 2.6.0
and xerces 2.6.2.

Does this mean that you are using the Xerces DOM Implementation as well? I suppose it's possible that there is a bug where setting an attribute twice with a null namespace does this in their DOM implementation.

I tried to create a simple test case that reproduces this bug but
of course when I did that it didn't happen. Will keep trying.

Of course ;) Please let us know if you succeed (a Bug report in any case might be useful, but especially if there is a reproducible test case).

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



Reply via email to