Writing to KHTMLPart and stylesheets

Maksim Orlovich mo85 at cornell.edu
Wed Aug 5 14:20:37 BST 2009


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.

I wonder what it does with namespaces and the like in that case?
I am not a big fan of serialization methods that can't reproduce the original 
(which reminds me there are some .innerHTML() fixes I should do).

Thanks,
Maks




More information about the kfm-devel mailing list