This question really belongs in the XSLT newsgroup, so i've set followup 
to there.

This is mostly a problem in the XSLT engine. As you say it is only 
designed to output XML. You can't change the mimetype of an existing 
document and have it morph into a XUL document. We are however working 
on making the XSLT engine output other things then XML, in the first 
iteration it will only be able to do HTML and XML, but after that it 
should be trivial to add more document types. Hopefully by 1.3a we will 
be able to do XUL and SVG as well.

As a workaround for now you can create a new XUL document, and transfer 
the result of the XSLT transformation into that document. The XSLT 
engine will output correct XUL contents, it's just the document-object 
itself that is "wrong".

Regards,
Jonas Sicking

Doug Turner wrote:
> 
> 
> -------- Original Message --------
> Subject: nsIMIMEInfo
> Date: Mon, 14 Oct 2002 00:46:27 +0200
> From: Carlo Zapponi <[EMAIL PROTECTED]>
> Organization: Another Netscape Collabra Server User
> Newsgroups: netscape.public.mozilla.xpcom
> 
> 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.
> 
> I've just seen nsIMIMEInfo and it's method SetFileExtensions, could it be
> useful?
> 
> Any idea about it? I mean, any kind of idea!
> 
> Thanx, bye bye
> carlo
> 
> 


Reply via email to