I was going to close this bug as invalid:
http://sourceforge.net/tracker/index.php?func=detail&aid=1102678&gro...
because the attached file indeed does not declare the xlink: prefix, which is invalid XML. However to my surprise both Batik and Adobe render it without a complaint. What am I missing? I thought that if a file is invalid XML it cannot be valid SVG. Are Batik/Adobe being unduly permissive? What are we supposed to do in this situation?
Answering my own question, looks like the namespace declaration is in the external DTD referenced from the file. Yet we don't read the external subset. Some time ago I tried to enable it via libxml but this did not seem to work. So this is actually a duplicate of
http://sourceforge.net/tracker/index.php?func=detail&aid=1042161&gro...
See a comment in that bug on my unsuccessful attempts to enable external DTD reading. If someone knows the correct libxml magic, you're welcome to try. It should be easy to do, and will close two bugs at once :)
On Sun, 16 Jan 2005 18:15:59 -0400, bulia byak <buliabyak@...400...> wrote:
I was going to close this bug as invalid:
http://sourceforge.net/tracker/index.php?func=detail&aid=1102678&gro...
because the attached file indeed does not declare the xlink: prefix, which is invalid XML. However to my surprise both Batik and Adobe render it without a complaint. What am I missing? I thought that if a file is invalid XML it cannot be valid SVG. Are Batik/Adobe being unduly permissive? What are we supposed to do in this situation?
On Sun, 2005-01-16 at 17:28, bulia byak wrote:
Answering my own question, looks like the namespace declaration is in the external DTD referenced from the file. Yet we don't read the external subset. Some time ago I tried to enable it via libxml but this did not seem to work. So this is actually a duplicate of
http://sourceforge.net/tracker/index.php?func=detail&aid=1042161&gro...
See a comment in that bug on my unsuccessful attempts to enable external DTD reading. If someone knows the correct libxml magic, you're welcome to try. It should be easy to do, and will close two bugs at once :)
We do need to make sure we interface with some sort of local DTD catalog, as I don't think fetching the DTD via HTTP is really a viable option.
-mental
On Sun, 16 Jan 2005 18:45:43 -0500, MenTaLguY <mental@...3...> wrote:
On Sun, 2005-01-16 at 17:28, bulia byak wrote: We do need to make sure we interface with some sort of local DTD catalog, as I don't think fetching the DTD via HTTP is really a viable option.
I'm pretty sure that is what other XML readers do. But even if not, I don't care, I just want libxml to do this stuff for us. We don't need to concern ourselves with this at all.
participants (2)
-
bulia byak
-
MenTaLguY