Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-26754

QXmlQuery + XSLT2 + function -> problems

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Reported
    • Priority: Not Evaluated
    • Resolution: Unresolved
    • Affects Version/s: 4.7.3
    • Fix Version/s: None
    • Component/s: XML: QtXmlPatterns
    • Labels:
      None
    • Environment:
      Linux RHEL5 64-bit with GNU C++ 4.1.2 and Qt 4.7.3

      Description

      Using <xsl:function> with QXmlQuery is buggy. The following code

      QString out;
      QXmlQuery query(QXmlQuery::XSLT20);
      query.setFocus(QUrl(xmlf));
      query.setQuery(QUrl(xslf));
      query.evaluateTo(&out);

      should have resulted in

      99 gives P 99P
      -88 gives N -88N

      however it gives

      99 gives P 99P
      -88 gives N 99P

      The function in the 'bad' namespace for some reason is seeing only the very first node and thereafter nothing new. I attach the XSL and XML.

        Attachments

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

          Activity

            People

            Assignee:
            Unassigned
            Reporter:
            tiaanwessels Tiaan
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Dates

              Created:
              Updated:

                Gerrit Reviews

                There are no open Gerrit changes