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 2.0
Forum Updated to NodeBB v4.3 + New Features

QXmlQuery XSLT 2.0

Scheduled Pinned Locked Moved General and Desktop
2 Posts 2 Posters 496 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.
  • V Offline
    V Offline
    VeNToR
    wrote on last edited by
    #1

    Hi;

    Does QXmlQuery(XSLT20) support xsl:for-each-group ? When I use it then following error occured by xmlpatterns tool;

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

    Thanks for your support.

    1 Reply Last reply
    0
    • T Offline
      T Offline
      tanius
      wrote on last edited by
      #2

      Late reply, but for anyone else still encountering this issue: as of Qt 5.12, this issue is still present.

      It seems that Qt simply does not support xsl:for-each-group. That was also the result of a 2013 blog post where somebody analyzed this issue.

      There are some limited ways to achieve the same functionality without xsl:for-each-group, see here. But this did not work for me due to a bug in Qt's XSLT variable binding. Finally I resorted to avoid even a xsl:for-each loop because the order and identity of the groups was known initially. See my code. Unfortunately Qt XSLT is barely useful as of Qt 5.12; like they say, the implementation is "experimental".

      1 Reply Last reply
      1

      • Login

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