You are viewing a plain text version of this content. The canonical link for it is here.
Posted to batik-users@xmlgraphics.apache.org by phillip rhodes <rh...@telerama.com> on 2002/09/04 06:27:21 UTC

newbie-can not render svg image within html document?

Hi.
I have several graphs that I have in an html document.  
Example of one:

<img 
src="http://ldi.rhoderunner.com/hra/servlet/chart?val=x&title=Health+Score&showLegend=true&series=November+1999&chartValues=1&chartValues=41&chartValues=1&chartValues=1&chartValues=50&chartValues=24&chartValues=1&series=November+1999&chartValues=1&chartValues=41&chartValues=1&chartValues=1&chartValues=50&chartValues=24&chartValues=1&series=April+2001&chartValues=1&chartValues=26&chartValues=1&chartValues=1&chartValues=25&chartValues=15&chartValues=1&series=April+2001&chartValues=1&chartValues=26&chartValues=1&chartValues=1&chartValues=25&chartValues=15&chartValues=1&categories=Cancer&categories=Heart+Disease&categories=Emphysema&categories=Cirrhosis&categories=Arthritis&categories=Overall&categories=Self-assessed+Health"/>

If I go to the directly to the URL above, (  http://ldi.rhoderunner.com/hra/servlet/chart?val=x&title=Health+Score&showLegend=true&series=November+1999&chartValues=1&chartValues=41&chartValues=1&chartValues=1&chartValues=50&chartValues=24&chartValues=1&series=November+1999&chartValues=1&chartValues=41&chartValues=1&chartValues=1&chartValues=50&chartValues=24&chartValues=1&series=April+2001&chartValues=1&chartValues=26&chartValues=1&chartValues=1&chartValues=25&chartValues=15&chartValues=1&series=April+2001&chartValues=1&chartValues=26&chartValues=1&chartValues=1&chartValues=25&chartValues=15&chartValues=1&categories=Cancer&categories=Heart+Disease&categories=Emphysema&categories=Cirrhosis&categories=Arthritis&categories=Overall&categories=Self-assessed+Health  ) it works, but if the url is part of an html document, it will not (e.g. <img src="url above"/>

Is there something special about svg that I need to do differerently than jpeg?  I am outputting a mime type of image/svg+xml

Thanks!

[RE] newbie-can not render svg image within html document?

Posted by Thomas E Deweese <th...@kodak.com>.
>>>>> "pr" == phillip rhodes <rh...@telerama.com> writes:

pr> I have several graphs that I have in an html document.  Example of
pr> one:

    Batik, currently doesn't render HTML documents at all.

pr> <img src="http://ldi.rhoderunner.com/..."/>

pr> If I go to the directly to the URL above, (
pr>      http://ldi.rhoderunner.com/...

pr> it works, but if the url is part of an html document, it will not
pr> (e.g. <img src="url above"/>

pr> Is there something special about svg that I need to do
pr> differerently than jpeg?  I am outputting a mime type of
pr> image/svg+xml

    I presume you are targeting the Adobe SVG viewer, since we don't
render HTML.  I believe you need to use some form of embed or object
tag.  I suggest you check out the Adobe site for details.


---------------------------------------------------------------------
To unsubscribe, e-mail: batik-users-unsubscribe@xml.apache.org
For additional commands, e-mail: batik-users-help@xml.apache.org