Oxygen SVG rendering differs in PC and Mac version

Having trouble installing Oxygen? Got a bug to report? Post it all here.
pmareschal
Posts: 4
Joined: Thu Jun 16, 2005 3:08 pm
Location: Brussels, Belgium

Oxygen SVG rendering differs in PC and Mac version

Post by pmareschal »

Hello,
I have a XSL file that renders a XML file into SVG.
When I run the scenario on a PC at work, it works OK.
The SVG file also renders correctly in Safari. You can grab it here:
here: http://home.scarlet.be/~pmaresch/svg1.svg
Unfortunately, when I render it in the SVG viewer on my Mac, I only get all black in the middle, as pictured here: http://home.scarlet.be/~pmaresch/screenshot.jpg.
Other SVG files render OK on both Mac and PC so I guess there is something wrong with my file. But why does it render ok on PC (Oxygen 6 at work) and not on my Mac (Oxygen 7, Mac OS X 10.4.4)?
Where is the bug? In my code or SVG preview?
Many thanks for your help.
sorin_ristache
Posts: 4141
Joined: Fri Mar 28, 2003 2:12 pm

Re: Oxygen SVG rendering differs in PC and Mac version

Post by sorin_ristache »

Hello,
pmareschal wrote:Where is the bug? In my code or SVG preview?
The SVG rendering engine used in <oXygen/> is made only of Java classes interpreted by the Java virtual machine, that is there is no platform dependent code. My guess is that the problem is in the Apple's Java virtual machine. It seems the particular translate and scale transforms specified in your SVG file are not executed correctly by the AWT rendering engine of the Apple's JVM, both the 1.4.2 and 1.5.0 versions. This would explain why other SVG files are rendered properly even on Mac OS. Your SVG file is rendered fine with a JVM from Sun Microsystems, for example on Windows and Linux.

Regards,
Sorin
Post Reply