Subject:CHART.XML + CHART.XSL to CHART.SVG ? Author:Ivan Pedruzzi Date:24 Oct 2006 10:14 PM
Hi Glenn,
IE doesn't understand SVG unless you install a SVG viewer like the one from Adobe http://www.adobe.com/svg. Unfortunately Adobe is planning to end support for its player January 1, 2008 leaving IE users out to the cold.
Subject:CHART.XML + CHART.XSL to CHART.SVG ? Author:Glenn Meadows Date:25 Oct 2006 07:38 AM
Hi Ivan,
I already have Adobe's SVG viewer installed. If I cut and paste what the browser is displaying as text and save it as an SVG file, I can then view the file in my browser with the graphics being displayed.
I am quite puzzled on this one.
Thanks for your help. I will try to be creative but any additional thoughts on this would be appreciated.
Subject:Re: CHART.XML + CHART.XSL to CHART.SVG ? Author:Glenn Meadows Date:25 Oct 2006 08:16 AM
Hi Ivan,
My aspx file can only accept one Page directive and it currently has
<%@ Page Language="C#" %>
If I add <%@ Page contentType="image/svg+xml"%>,below the line
<%@ Page Language="C#" %>, it complains that my aspx file can only have one page directive.
If I add the contentType as an attribute to the Page directive as
<%@ Page Language="C#" contentType="image/svg+xml"%>, my aspx file does not complain but does not display anything in the browser only to show a blank screen.
This time I received a blank screen in the browser in lieu of the svg text output. If I put both the chart.xml and chart.xsl into SS and run them, I get the desired graphical results in the output method.
In my aspx file shown here, I think the Response.Output param in my transform method is outputting text and not the expected svg graphic.
Subject:Re: CHART.XML + CHART.XSL to CHART.SVG ? Author:Glenn Meadows Date:25 Oct 2006 01:00 PM
Hi Ivan,
I have added the mime type to my IIS web server with *.svg being associated with image/svg+xml and I still receive a blank screen after restarting my web server.
Subject:Re: CHART.XML + CHART.XSL to CHART.SVG ? Author:Tony Lavinio Date:25 Oct 2006 02:42 PM
Did you try doing a 'View Source' to see if the output actually
came as you expected? Then at least you can narrow the problem
down to a MIME-type one.
Subject:Re: CHART.XML + CHART.XSL to CHART.SVG ? Author:Glenn Meadows Date:25 Oct 2006 02:51 PM
Hi Ivan,
I have found that if I strip out all of the white spaces from the SVG text that is displayed to the browser and then I cut and paste this text to a SVG file, the graphic is then correctly displayed in the browser when I do a File->Open from IE.
I guess I need to find a way to strip white spaces out on the fly...
Subject:Re: CHART.XML + CHART.XSL to CHART.SVG ? Author:Glenn Meadows Date:25 Oct 2006 03:20 PM
Thanks to the SS team for help on this.
I think that I have exhausted looking at all possible solutions.
I will now attempt to take my SVG file generated by my SVG editor and use the file as a template where I will use the XML DOM to generate the output I need.
Certainly if anyone has any further ideas on how to solve the aspx solution, I would love to hear from you.