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:
“The corporate grip on opinion in the United States is one of the wonders of the Western World. No First World country has ever managed to eliminate so entirely from its media all objectivitymuch less dissent.”
—Gore Vidal (b. 1925)
“The wider the range of possibilities we offer children, the more intense will be their motivations and the richer their experiences. We must widen the range of topics and goals, the types of situations we offer and their degree of structure, the kinds and combinations of resources and materials, and the possible interactions with things, peers, and adults.”
—Loris Malaguzzi (19201994)