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

QXmlQuery + XSLT2 + function -> problems

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • P5: Not important
    • 5.15
    • 4.7.3
    • XML: QtXmlPatterns
    • None
    • 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

            Unassigned Unassigned
            tiaanwessels Tiaan
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes