Results 1 to 2 of 2

Thread: QtWebkit and XSLT

  1. #1
    Join Date
    Jan 2006
    Location
    Athens - Greece
    Posts
    219
    Thanks
    3
    Thanked 1 Time in 1 Post
    Qt products
    Qt3 Qt4
    Platforms
    Unix/X11 Windows

    Default QtWebkit and XSLT

    It seems that XSLT will not be supported in QtWebkit for Qt 4.5 but in the same comment it is mentioned that it should be possible with the public API.
    The comment is too abstract to guide anyone. Does anyone have any ideas how we could glue the Qt 4.5 XSLT implementtion with QtWebkit?
    I love deadlines. I like the whooshing sound they make as they fly by.
    --
    Douglas Adams

  2. #2
    Join Date
    May 2006
    Posts
    788
    Thanks
    49
    Thanked 48 Times in 46 Posts
    Qt products
    Qt4
    Platforms
    MacOS X Unix/X11 Windows

    Default Re: QtWebkit and XSLT

    use another browser like firefox + selfmade plugin
    or begin your adventure on..
    http://doc.trolltech.com/main-snapsh...infactory.html

    qt 4.5 XSLT2 is not same as gmone xslt1

    example <xsl:param name=*** run on qt4.5 on other xslt you must write
    <xsl:variable name=***

    if you like to become compatibility on 70% from browser as java script + xslt this is a hard work.

    xslt on browser is a bad place
    the best way to transform xslt documnet or item , direct on server:
    http://cocoon.apache.org/ java framework
    http://wiki.flux-cms.org/display/FLX/Popoon and his friend php framework
    all two can output xhtml page pdf transformation rtf and all other choise...

    On qt as client xslt is enough to transform local / remote document or rss
    like -> http://fop-miniscribus.googlecode.co...paper/main.cpp


    Qt Code:
    1. #if QT_VERSION >= 0x040500
    2. QDateTime timer1( QDateTime::currentDateTime() );
    3. StreamBuf *buf = new StreamBuf();
    4. QXmlQuery xquery(QXmlQuery::XSLT20);
    5. xquery.setFocus(QUrl("http://www.qtcentre.org/forum/external.php?type=RSS2"));
    6. xquery.bindVariable("unixtime", QVariant(timer1.toTime_t()));
    7. xquery.bindVariable("ddate", QVariant(timer1.toString()));
    8. xquery.bindVariable("ddformat", QVariant(QDir::homePath () ));
    9. xquery.setQuery(QUrl("http://fop-miniscribus.googlecode.com/svn/trunk/doc/draw_paper/browser_rss.xsl"));
    10. xquery.evaluateTo(buf->device());
    11. _doc->setHtml ( buf->data() );
    12. ////////////buf->PutOnFile( "ddebughtml.html" );
    13. #endif
    To copy to clipboard, switch view to plain text mode 

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.