Re: errors in viewing svg file. help needed

Helder Magalhães <[email protected]>
Newsgroups gmane.text.xml.batik.user
Message-ID <CAPODfC5Z8K6FvyF+Uisb4TCe7dUuToqw3dmO8NzCLe9hYfkdcQ@mail.gmail.com>
Hi wolnic,


> but in batik version 1.7 the file gets erros and cannot displayed correctly
> like firefox

Just checked in Batik 1.8-pre (development version) and confirmed that
the problem is the doctype being used: it isn't supposed that quotes
are escaped (as "&quot;") at that point. Replacing the guilty lines
with:

<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN"
"http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd">

Works around the problem.

In the meantime, the specification states that it "is not recommended
that a DOCTYPE declaration be included in SVG documents" [1] so, if
you or your software support that sort of configuration, you may want
to review it.


Hope this helps,
 Helder


[1] http://www.w3.org/TR/SVG/intro.html#NamespaceAndDTDIdentifiers
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.