Code:
#if QT_VERSION >= 0x040500
StreamBuf *buf = new StreamBuf();
QXmlQuery xquery(QXmlQuery::XSLT20);
xquery.
setFocus(QUrl("http://www.qtcentre.org/forum/external.php?type=RSS2"));
xquery.
bindVariable("unixtime",
QVariant(timer1.
toTime_t()));
xquery.
bindVariable("ddate",
QVariant(timer1.
toString()));
xquery.
bindVariable("ddformat",
QVariant(QDir::homePath () ));
xquery.
setQuery(QUrl("http://fop-miniscribus.googlecode.com/svn/trunk/doc/draw_paper/browser_rss.xsl"));
xquery.evaluateTo(buf->device());
_doc->setHtml ( buf->data() );
////////////buf->PutOnFile( "ddebughtml.html" );
#endif