Writing to KHTMLPart and stylesheets

Michael Leupold lemma at confuego.org
Wed Aug 5 14:47:49 BST 2009


Maksim Orlovich wrote:

> On Wednesday 05 August 2009 09:01:54 Michael Leupold wrote:
>> 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.
> 
> Is there no accessor for that in libxslt? That's unfortunate.

There might be. The problem is that that IMO libxml and libxslt api docs are 
really poor to search through. I'll keep searching.

Regards,
Michael






More information about the kfm-devel mailing list