Re: Stylesheet type for xslt?

Subject: Re: Stylesheet type for xslt?
From: "Paul W. Abrahams" <abrahams@xxxxxxxxxxx>
Date: Mon, 09 Aug 1999 23:18:25 -0400
 
 
               From: Tony Graham <tgraham@xxxxxxxxxxxxxxxx>
               Date: Mon, 9 Aug 1999 12:36:16 -0400 (EST)

               At 9 Aug 1999 12:07 -0400, Paul W. Abrahams wrote:
                > It's possible to associate a CSS2 stylesheet with an XML document by
                > including the processing instruction
                >
                >    <?xml-stylesheet href="" type="text/css" ?>
                >
                > What is the correct type for an XSLT stylesheet?
                >
                > And by the way, what use if any do the `title', `media', and `charset'
                > pseudo-attributes have when used in such a processing instruction?  They
                > are carried over from HTML links.

               See http://www.w3.org/TR/xml-stylesheet/

               Regards,
 

               Tony Graham
 
The questions I asked came up *after* reading the TR.  It merely refers back to the HTML spec for information about `title', `media', `type', etc.  And the HTML spec doesn't define types either; it in turn refers to the MIME spec.  It wasn't entirely clear whether `text/css' works for CSS1, CSS2, or both.
Nor was it clear how `title' or `media' would be useful in the context of the xsl-stylesheet PI.

There was nothing I could find in the MIME reference that would seem to apply to xslt stylesheets, unless perhaps it's `type=text/xml' or `type=application/xml'.  No way to determine whether either of those is correct.

Paul Abrahams
 

Current Thread