W3C home > Mailing lists > Public > www-svg@w3.org > April 2000

Re: SVG MIME types

From: Chris Lilley <chris@w3.org>
Date: Fri, 14 Apr 2000 01:20:41 +0200
Message-ID: <38F65649.54BAC952@w3.org>
To: Justin Friedl <justin.friedl@aspentech.com>
CC: "'www-svg@w3.org'" <www-svg@w3.org>, "'jferraio@Adobe.COM'" <jferraio@Adobe.COM>


Justin Friedl wrote:
> 
> I am using the Adobe SVG viewer.  I can create and view .svg files fine.  I
> want to view SVG files generated from an asp page.
> at the top of the asp I put <% Response.ContentType = "image/svg-xml"%>
> and then copied the content of a .svg file that I know works.  When I try to
> view the page IE 5.0 doesn't recognize the image/svg-xml type and tryies to
> download it.  I also tried
> <% Response.ContentType = "image/svg"%> This seems to work better. 

The Adobe implementation only recognises the older MIME type, currently.

> The svg
> view tries to render it but gets the following error in the status bar:
> "xml processing instruction not at start of external entity: line 2, column
> 0"
> 
> <% Response.ContentType = "image/svg"%>
> <?xml version="1.0" standalone="no"?>
> <!DOCTYPE svg SYSTEM "svg-19991203.dtd" >
> <svg width="1000" height="500">
>         <rect style="stroke:#000000; stroke-width:1; stroke-opacity:1;
> fill:#000000; fill-opacity:1" x="0" y="0" width="1000" height="500" />
> </svg>
> 
> any suggestions?

If that is how your server lets you adjust the content type, fine - but it
should strip out this stuff before sending it to the client.

The problem is caused by the line you added, which sets the content type
but means the file is no longer well formed XML.

Are there any other ways to set the mime type, without editing individual
files?

--
Chris
Received on Thursday, 13 April 2000 19:20:51 GMT

This archive was generated by hypermail 2.3.1 : Friday, 8 March 2013 15:54:18 GMT