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