Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

Question

I am interested in generating an SVG file from an XML data file using an XSL transform however,
the mime type is not set correctly ('text/html') when it is sent to the browser.
( I am using FCR 3.3 on OSX 10.6 with Apache 2.2 and viewing on Firefox 3.6)

...

Do I need to set the mime-type anywhere else? Are theere on certain output mime-types that are recognized?

Answer

I suppose you are using the Saxon xslt service? Then you have to set the media-type attribute on the output element of your stylesheet. That will overrule all the other declarations.

...