tags:

views:

120

answers:

1

Hi,

I like to display some (X)HTML content in a Qt application using QtWebKit. The content should be generated from XML documents via XSLT.

As I am new to Qt, my questions are as follows:
1) Can QtWebKit display XML documents with the xml-stylesheet element set?
2) Can Qt apply XSLT to an XML document and return the result as a string or write it to a file?

+1  A: 

QtWebKit and xslt were always seprate, combining them was always a todo - not sure what the current status is but you can easily test it with the examples.

Or follow http://labs.trolltech.com/blogs/2010/03/03/qtwebkit-releases/

Martin Beckett
I tried Qt's browser demo today. It is capable to apply XSLT if the xml-stylesheet element is set, but there seems to be no way to dynamically set the element without changing the underlying xml data.
swegi