display in browser via http [Archive] - XML Elves

display in browser via http

Travis
06-19-2004, 12:20 AM
I can get the following file to display properly in a browser (latest IE), however when accessed via a request to the server (http://www.smoky-hills.com/custer_st_park.svg), I get an error.
Any help is appreciated.

Best.... Travis

--------- the file -------------------
<?xml version="1.0" encoding="ISO-8859-1" standalone="yes"?>
<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.0//EN" "http://www.w3.org/TR/2001/REC-SVG-20010904/DTD/svg10.dtd" >
<svg>
<g transform="scale(0.30)">
<g id="Park_Boundary" stroke="#000000">
<path fill="#E9EFB3" stroke-width="4" stroke-dasharray="36 12 36 12" d="M2374,574l-1231,23l2-41H919l-2-40l-36,1l-4-232l-405,5l5,237l128-1l4-33l181-3l1,28l39,1v39l44,1v117l76-2v-21l159-4l8,501l-237,5l-6,9l-38,36l-3,28l11,29l10,16h21l1,38l35,3l10,24l11,6l-1,12l2,14l11,1l9,20h7l-2-43l20-7l16-14l10-16l-3-26v-12l118-2l21,1224l148-1l-2,121l190-4l60,39l66,80l710-13l-3-243l97-2L2374,574z"/>
</g>
</g>
</svg>

Anonymous
06-19-2004, 01:03 AM
I think that your server don't send correct mimeType for file with svg extension.
MimeType must be image/svg+xml

If server is Apache, add file named htaccess with :
AddType image/svg+xml svg
AddType image/svg+xml svgz

Michel

 
Web mp2kmag.com
mapforums.com

EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum