[Home]  [List]  [News]  [Docs]  [FAQ]  [Downloads]  [Resources]  [About]
Search :
/Home /List

list4xt : Mailing list for the XT users community.

[list4xt] Need help on setting mime type to SVG please

Subject: [list4xt] Need help on setting mime type to SVG please

User: Website

From: Larry_Mason@i2.com
Date: 06/09/2000 - 18:39


For some reason I can not produce the proper magic to tell the browser the
document contains SVG. Here is the head of my XSLT file.

  <xsl:stylesheet
    xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
    xmlns="http://www.w3.org/TR/REC-html40"
    result-ns="">
    <xsl:output
         standalone="yes"
         method="xml"
         media-type="image/svg-xml"
         omit-xml-declaration="no"
         doctype-public="-//W3C//DTD SVG 20000802//EN"
         doctype-system
="http://www.w3.org/TR/2000/CR-SVG-20000802/DTD/svg-20000802.dtd"
         indent="no"/>

I've also tried
  <xsl:stylesheet
    xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
    xmlns="http://www.w3.org/TR/2000/CR-SVG-20000802/DTD/svg-20000802.dtd"
    result-ns="">

Here is how I invoke the process
http://myserver/servlet/xslt?xmlfile=data.xml&xslfile=chart.xsl

What I get rendered is XML not the SVG graphic.

However if I invoke the following
http://myserver/chart.jsp
which contains
<%@ page contentType="image/svg-xml" %>
<jsp:include page="/servlet/xslt?xmlfile=data.xml&xslfile=chart.xsl"/>

it displays properly.
So the XSLT processing is building proper SVG code but somewhere the
document type is not being set.

Looking for suggestions on a fix. The JSP approach is not acceptable in my
environment.

TIA,
Larry

--
Mailing list for the XT users community.     (http://visitidahospringscolorado.com)
(mailto:list4xt-request@4xt.org?Subject=unsubscribe to unsubscribe)



Archive générée par hypermail 2b28 le 06/11/2001 - 11:46 CET

webmaster@4xt.org