Results 1 to 2 of 2

Thread: QXmlQuery XSLT20 not possibel to bindVariable <xsl:variable>

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

    Default QXmlQuery XSLT20 not possibel to bindVariable <xsl:variable>

    QXmlQuery xquery(QXmlQuery::XSLT20);
    qt4.5

    xquery.bindVariable("unixtime", QVariant(timer1.toTime_t()));
    can not replace variable
    <xsl:variable name="unixtime" select="'0000000'" />
    like gnome xslt... or i write mistake?

    XSLT2 is comatible on XSLT1?

    i like only to union 2 file and on variable
    http://fop-miniscribus.googlecode.co...ltqt5/data.xml
    http://fop-miniscribus.googlecode.co...tqt5/style.xsl


    http://fop-miniscribus.googlecode.co...k/doc/Xsltqt5/

    http://fop-miniscribus.googlecode.co...ltqt5/main.cpp main.cpp having query

    I need XSLT2 to transform DB query to report as OpenOffice document.

    IMO i can not post on qt4-preview-feedback@trolltech.com i having pass and all item..

  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: QXmlQuery XSLT20 not possibel to bindVariable <xsl:variable>

    I post here a responder from news trolltech.qt4-preview-feedback to next search "XSLT" on forum.

    On Thursday 18 September 2008 09:47:25 Patrik wrote:
    > > QXmlQuery xquery(QXmlQuery::XSLT20);
    > > qt4.5
    > >
    > > xquery.bindVariable("unixtime", QVariant(timer1.toTime_t()));
    > > can not replace variable
    > > <xsl:variable name="unixtime" select="'0000000'" />
    > > like gnome xslt... or i write mistake?

    Change xsl:variable to xslaram and it works. xslaram is used for
    stylesheet parameters, while xsl:variable simply declares variables.


    Cheers,

    Frans

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.