[thelist] [ASP] serving dynamic SVG

Dru and Cindy Sellers dru at zetachi.org
Wed Oct 30 17:04:00 CST 2002


Does anyone know how I can tell the browser that I am sending it a SVG
document?
I am currently trying

response.ContentType="image/svg-xml"

my generated SVG looks like
(I have deleted extra wedges for the sake of size)

<?xml version="1.0" encoding="iso-8859-1" ?>
<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.0//EN"
"http://www.w3.org/TR/2001/REC-SVG-20010904/DTD/svg10.dtd">
<svg xml:space="preserve" width="5in" height="5in" viewbox="0 0 320 348">
<rect x="0" y="0" width="320" height="348" style="fill:white" />
<!-- AOL-->
<path d="M 160,160 L 310,160 A 150,150 0 0 1 289,237 Z"
style="fill:#FF0000;" />
<circle cx="160" cy="160" r="150" style="fill:none; stroke:black;
stroke-width:5"/>
</svg>

The URL to the file is:
http://www.bakeru.edu/html/studentorgs/mmic/assets/charts/portfolioPercent.a
sp

I am open to any ideas
Thanks for the help,

dRu
---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.408 / Virus Database: 230 - Release Date: 10/24/02




More information about the thelist mailing list