SVG in a WO client

John Pollard <[email protected]> Thu, 23 Feb 2006 14:45:30 +0000
Newsgroups gmane.comp.web.webobjects.general
Message-ID <[email protected]>
Hi List,

This is a bit OT, so posting to talk not dev.

I have been working on trying to display SVG graphics using the apache 
batik library within my WO client.
I can load and parse and SVG file ok on my client, up until I call 
EOClientApplication.main(...). If I try the SVG stuff after that, I get an 
error:

at org.apache.batik.css.engine.CSSEngine.parseStyleSheet(Unknown Source)
at org.apache.batik.dom.svg.SVGDOMImplementation.createCSSEngine(Unknown 
Source)
at org.apache.batik.dom.ExtensibleDOMImplementation.createCSSEngine(Unknown 
Source)

with an error:
org.w3c.dom.DOMException: 
<file:///Volumes/Mirror/InraxUploads/8206/10297>file:/Volumes/Mirror/InraxUploads/8206/10297

So the question is, what could EOClientApplication.main() be doing to upset 
the operation of batik. The file itself is a valid SVG file and processes 
fine before the call to this method.

I unfortunately have to call EOClientApplication.main() at the start of my 
JC app, because it is the only way I know to initialise the client 
successfully (I use my own Swing code in the client).

I have checked System.getProperties() to see if they have changed (they do 
slightly) and reset them back to how they were, but still the problem 
remains. I wonder if somehow the wrong DOM parser is being used due to some 
setting made in EOClientApplication.main().

Thanks, John

John Pollard
020 889 22143
077 422 10024