Writing to KHTMLPart and stylesheets

Michael Leupold lemma at confuego.org
Wed Aug 5 14:01:54 BST 2009


Maksim Orlovich wrote:

>> Is args.setMimeType(""); part->setArguments(args); legal?
> 
> Not really, I think. It just happens to be treated as HTML --- but that's
> an implementation detail.
> 
>> It seems this
>> will work for xslt generating html as well as xhtml. If it isn't I'll
>> have to find a yet to determine the proper mimetype yet.
> 
> I don't see how XSLT can possibly produce something other than XML?
> And it will certainly not parse XML right (not that the XML parser itself
> is perfect --- there is some nonsense stuff there that needs removing...)

It can using <xsl:output method="html"/>. I guess I could just scout the 
stylesheet for that and set the mime-type accordingly.

Regards,
Michael






More information about the kfm-devel mailing list