Re: nsIMIMEInfo
Axel Hecht <[email protected]> Mon, 04 Nov 2002 22:56:31 +0100
| Newsgroups | gmane.comp.mozilla.devel.xpcom |
|---|---|
| Organization | Another Netscape Collabra Server User |
| Message-ID | <[email protected]> |
Carlo Zapponi wrote:> Hello there! > > Just wondering if it's possible to change the mime type of an opened file. I > have an XML document rendered with XSLT and I want to generate a XUL > document. Unfortunately XSLT can only generate XML so I was looking for a > way to change the mime-type of the generated file. tststs. perfectly wrong group. XSLT can generate pretty much any content. If you really want it to. <xsl:output media-type="foo"> If you talk about using the XSLT engine built into Mozilla, we support only xml, html and text. But we don't create a file. So nowhere to go here. Or just serialize to .xul, and be done with it. This is a non-Mozilla issue at first and should go to a public list. XSLT questions special to Mozilla go to either layout.xslt or .xml > > I've just seen nsIMIMEInfo and it's method SetFileExtensions, could it be > useful? nsIMIMEInfo's are Clone'd when you retrieve them from the mime service, so you can't change them in the backend. This is network. Oh, did I say tsstsstss? Maybe. Axel