Re: Correct type for XSLT stylesheets

Bjoern Hoehrmann wrote:
> 
> * Jeffrey Yasskin wrote on www-style@w3.org:
> >In section 2.7 Embedding Stylesheets in the XSLT 1.0 Recommendation, the
> >first line of the sample page is:
> >
> ><?xml-stylesheet type="text/xml" href="#style1"?>
> >
> >Internet Explorer only applies the stylesheet if the type is "text/xsl".
> >Which is right?
> 
> text/xml and application/xml. 

While it is vcalid to serve xsl-t as those mime types, since they are
indeed xml, it doesn't tell the browser very much useful. It certainly does
not allow the browser to tell whether it supports a particular stylesheet
language (xsl-t is written in xml, but then again anyone else can write
their own stylesheet language in xml as well).

> If Microsoft Internet Explorer does not
> accept them as MIME types for XSLT sheets, thats a bug. 

Accepting them is one thing, making a decision about whether a stylesheet
language is supported or not is another and cannot be done on the basis of
such limited information as text/xml

> RFC 3023
> mentions application/xslt+xml in the examples section (8.17), but that
> MIME type isn't currently registered.

So, it is up to the XSL WG to register the MIME type that they want to use,
put that in the spec, and then have implementors issue the appropriate dot
releases.

-- 
Chris

Received on Monday, 23 April 2001 04:55:26 UTC