Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. QXmlQuery: XSLT for-each-group not recognised

QXmlQuery: XSLT for-each-group not recognised

Scheduled Pinned Locked Moved General and Desktop
1 Posts 1 Posters 1.1k Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • A Offline
    A Offline
    alienmuppet
    wrote on last edited by
    #1

    The "QT Documentation":http://qt-project.org/doc/qt-4.8/xmlprocessing.html states that for-each-group is supported when using QXmlQuery. However I get an error when I try and use it:

    "The element with local name for-each-group does not exist in XSL-T."

    Am I missing something?

    I am using Qt 4.8.4.
    I am calling QXmlQuery like this:

    @
    QXmlQuery xmlQuery(QXmlQuery::XSLT20);
    xmlQuery.setMessageHandler(&messageHandler);
    xmlQuery.setFocus(&xmlBuffer);
    xmlQuery.setQuery(&queryFile);
    @

    The line from my XSL file looks like this:

    @
    <xsl:for-each-group select="../readings/slot" group-by="@slot_dtm">
    @

    Thanks.

    1 Reply Last reply
    0

    • Login

    • Login or register to search.
    • First post
      Last post
    0
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Get Qt Extensions
    • Unsolved