I want generate the SVG graphics on the fly. But the browser (IE 6.0.2 SP1) do not show the graphic from the CSP-site (Server: Cache for Windows NT (Intel) 5.0.8 (Build 5105)).
Example: For this example you need three files! svghome.csp ----------- <HTML> <BODY> SVG Demo <br> <object type="image/svg+xml" data="svgdemo.svg" width="400" height="400">Systems that can't display SVG.</object> <object type="image/svg+xml" data="svgdemo.csp" width="400" height="400">Systems that can't display SVG.</object> <br> </BODY> </HTML> svgdemo.csp ----------- <?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 viewBox="0 0 400 400" > <g stroke="black" stroke-width="1.0"> <line x1="20" y1="20" x2="280" y2="380" /> </g> </svg> <script arguments="" language=Cache method=OnPreHTTP returntype=%Boolean> // Force the content-type of the reponse to image/svg+xml Set %response.ContentType="image/svg+xml" Set %response.CharSet="iso-8859-1" Quit 1 </script> svgdemo.svg ----------- <?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 viewBox="0 0 400 400" > <g stroke="black" stroke-width="1.0"> <line x1="20" y1="20" x2="280" y2="380" /> </g> </svg> Run now the url svghome.csp on your browser (http://host:1972/csp/svgdemo/svghome.csp) and you must see two lines! Why it not work with CSP or where is my error? The example work with ASP! Thanks Mauro PS: You must install the Adobe SVG-Plugin (http://www.adobe.com/svg/viewer/install/main.html) if you want test this sites!
