Thanks Thomas,

 

Unfortunately, it seems that the problems with this file are not limited to the 
ones you have highlighted.  In fact, I believe it is totally corrupted.  I 
obtained it from ASV when I viewed it in IE7 but when I use Opera to view it 
and download the source from that it looks quite different (i.e. well-formed).

 

I can’t say I fully understand why that is so but I am not going to investigate 
it either.  The important thing is that it now works.

 

Cheers,

 

-JCT

 

From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] 
Sent: Thursday, 11 September 2008 20:12
To: [email protected]
Cc: [email protected]
Subject: Re: Perplexing error message loading SVG

 


Hi John,

"John C. Turnbull" <[EMAIL PROTECTED]> wrote on 09/10/2008 04:16:24 PM:

> I am trying to load an SVG document and I get this error: “The 
> markup declarations contained or pointed to by the document type 
> declaration must be well-formed”.  As I didn’t write the SVG I am 
> unable to determine exactly what this means or why the error has occurred. 

   The document type declaration (DTD) seems like it was hand 
edited badly. The DTD is the '<!DOCTYPE' thingy at the start of the 
document.  Note the '>' at the start of this line: 

    ><!ATTLIST svg 

   If you get rid of that the DTD will work.  However the 
Script element with the '<![CDATA[' block ends poorly as well 
the ']]' and the '>' can not be separated by white space: 
        http://www.w3.org/TR/REC-xml/#sec-cdata-sect 

> Could someone point out what the problem is with the SVG that 
> displays correctly in all the browsers I have tried it with?  The 
> SVG is attached. 

   Well the browsers will generally accept just about anything 
they can 'make sense of'.  They have been trying to get better 
about this but still they accept a lot of garbage (consequently 
encouraging the generation of more garbage). 

   BTW these days it's out of style to use DTD's at all with 
XML since they are really bad at expressing the complexities 
of namespaced XML documents.  So the hip thing to do is to 
simply delete them. 

Reply via email to