The Content
type
HTTP response header specifies the MIME type. Different flavors of XML can have different MIME types. For example:
XHTML: MIME type
text/html
SVG: MIME type
image/svg
xml
The recent XMLMediaTypes specification (ftp://ftp.isi.edu/in-notes/rfc3023.txt) suggests more variations, such as image/rdf+xml
for RDF, and image/xslt+xml
for XSLT.
The ATG platform determines which MIME type to use in the following order of precedence:
The MIME type that is set explicitly in the stylesheet via the
media
type
attribute:<xsl:output media
type="a/b"/>
.The MIME type indicated in the
DynamoHTTPServletResponse
(response)The default used by the application server for the specific file type. The default for JSPs is
text/html
.
Because the default MIME type is not the expected XSL default mechanism based on the method or the expected text/xml
, it is advisable to set the MIME type explicitly in the stylesheet. For information about overriding the default MIME type, see the ATG Installation and Configuration Guide.