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

XSLT 2.0 variable using the wrong context when assigned early in a different context

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Out of scope
    • Icon: Not Evaluated Not Evaluated
    • None
    • 4.8.6
    • XML: QtXmlPatterns
    • None
    • XSLT 2.0

      The attached XSLT 2.0 running against the attached XML is expected to say "dog" or "cat" everywhere and not "client". Yet, xmlpatterns says "client" in two places. (see a.out, where we see 'client' it should be 'cat' or 'dog')

      This is certainly due to the fact that the variable is set to "name(..)" and that "name(..)" is interpreted from where the variable is being used when in XSLT 2.0 (and 1.0 and 3.0) it is clearly to be using the value from where it was defined and not where it is used.

        1. a.xsl
          0.9 kB
        2. a.xml
          0.4 kB
        3. a.out
          0.3 kB
        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

            Unassigned Unassigned
            alexiswilke Alexis Wilke
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes