XSLT Media Types
The element can optionally take the attribute
media-type
, which allows one to set the media type (or MIME type) for the resulting output, for example:
. The XSLT 1.0 recommendation recommends the more general attribute types text/xml
and application/xml
since for a long time there was no registered media type for XSLT. During this time text/xsl
became the de facto standard. In XSLT 1.0 it was not specified how the media-type
values should be used.
With the release of the XSLT 2.0, the W3C recommended the registration of the MIME media type application/xslt+xml
and it was later registered with the Internet Assigned Numbers Authority
Pre-1.0 working drafts of XSLT used text/xsl
in their embedding examples, and this type was implemented and continues to be promoted by Microsoft in Internet Explorer and MSXML. It is also widely recognized in the xml-stylesheet
processing instruction by other browsers. In practice, therefore, users wanting to control transformation in the browser using this processing instruction are obliged to use this unregistered media type.
Read more about this topic: XSLT
Famous quotes containing the words media and/or types:
“Today the discredit of words is very great. Most of the time the media transmit lies. In the face of an intolerable world, words appear to change very little. State power has become congenitally deaf, which is whybut the editorialists forget itterrorists are reduced to bombs and hijacking.”
—John Berger (b. 1926)
“... there are two types of happiness and I have chosen that of the murderers. For I am happy. There was a time when I thought I had reached the limit of distress. Beyond that limit, there is a sterile and magnificent happiness.”
—Albert Camus (19131960)