Hi John,

> For some reason, the Squiggle in the Batik I have checked-out from SVN
> (and not updated for a few weeks) is giving an error opening certain SVG 
> files.
>  Neither Batik or the document have changed in the last few weeks [...]

Could you provide some more information like the specific Batik
revision number, Java version and operating system (at a minimum)? A
reduced test case would  be great! ;-)


> [...] when I try to open an SVG document that does not contain this line at 
> the
> top:
>
> <!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN"
> "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd";>
>
> I get this exception:
>
> If I add the omitted line then everything is fine again.  But given that I
> used to be able to open SVG files containing nothing more than the
> <svg></svg> tags and that nothing has changed in either the document or in
> Squiggle itself, what could possibly be causing this exception?  Are there
> some external factors that influence SVG document validation?

Works for me. This is pretty weird, so some loose thoughts follow:
 * Those "at com.sun.org.apache.xerces" suggests you've left Apache
Xerces out of the class path. Xerces is apparently also shipped with
older Java versions (although apparently an ancient version of
Xerces). A related thing was already raised in a previous thread [1];
 * Have you tried validating the source using the W3C validator? It
has been (somehow recently [2]) updated and should be a lot better
now.
 * Are you including an XML preamble? Though I've tested and shouldn't
make a difference, maybe using non ANSI encodings within the document
could suggest something as the above);


Although quite off-topic, while in the midst of experiments in order
to clear up for a possible interaction with SVG version property, I've
noticed that setting version to "1.2" (attaching a modified version of
"gradients.svg" of Batik samples) seems to cause clip paths not to be
applied as expected (note the behavior of radial gradient near the
bottom versus the original version). Was it some change in the
specification or did something slip through my mind? I've used
Squiggle from revision 772054 on Java 1.6 update 12 (Windows Vista
SP1) for this test. This seems to be in need of further
investigation...


> Thanks,
> -JCT

Hope this helps,
 Helder Magalhães


[1] 
http://www.nabble.com/why-rename-xercesImpl.jar-to-xerces_2_5_0.jar--td20034830.html#a20185161
[2] http://validator.w3.org/whatsnew.html#t2009-03-26

<<attachment: gradients12.svg>>

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to