Writing to KHTMLPart and stylesheets
Maksim Orlovich
mo85 at cornell.edu
Wed Aug 5 13:37:29 BST 2009
> 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...)
> >> Yeah. Look for a PROCESSING_INSTRUCTION_NODE child of the document, and
> >> go from there. (Hmm, maybe we should export
> >> traverseNextChild/traversePrevChild in public API)?
> >
> > Alright, I'll try that tomorrow. For the moment I was using libxml's
> > XPath but the code turned out pretty weird because I put the contents
> > back into a QString for parsing.
>
> Works as well and turned out to be simpler than the XPath stuff.
Good to hear.
Thanks,
Maks
More information about the kfm-devel
mailing list