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

Re: SVG MIME types

From: Justin Friedl <justin.friedl@aspentech.com>
Date: Thu, 13 Apr 2000 16:03:12 -0700
Message-ID: <B1612D837360D111A9C000805FBBCCC901E87C54@geoffrey.sea.aspentech.com>
To: "'www-svg@w3.org'" <www-svg@w3.org>
Cc: "'jferraio@Adobe.COM'" <jferraio@Adobe.COM>
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 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?
thanks,
Justin

> 	Justin Friedl
> 	Software Engineer
> 	Web and eCommerce
> 	Supply Chain Division
> 	Aspen Technology
> 	19204 North Creek Parkway
> 	Bothell, WA 98011
> 	425-492-2379
> 	425-492-2125 (fax)
> 	mailto:justin.friedl@aspentech.com
> 
> 
Received on Thursday, 13 April 2000 19:03:24 GMT

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