W3C home > Mailing lists > Public > www-style@w3.org > April 2001

Re: Correct type for XSLT stylesheets

From: Chris Lilley <chris@w3.org>
Date: Mon, 23 Apr 2001 10:56:13 +0200
Message-ID: <3AE3EE2D.D0D2777@w3.org>
To: Bjoern Hoehrmann <derhoermi@gmx.net>
CC: Jeffrey Yasskin <jyasskin@appcomp.com>, www-style@w3.org, wasp@microsoft.com

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

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

This archive was generated by hypermail 2.3.1 : Monday, 2 May 2016 14:26:57 UTC