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

XSLT20 pattern always evaluated using AxisSelf

    XMLWordPrintable

Details

    • Bug
    • Resolution: Won't Do
    • P3: Somewhat important
    • None
    • 4.7.0
    • XML: QtXmlPatterns

    Description

      When a relative path Pattern is parsed inside the querytransformparser (rule Pattern), the axis used seems to be set to AxisSelf.

      However the XSLT spec seems to imply that a relative path pattern such as "elem" should match any elem element, not just the root element. I tried to figure out how that works out for TemplateDecl but couldn't.

      Use-case: I'm trying to implement xsl:key and fn:key. For a key lookup table to be built I need to retrieve all elements matching xsl:key's use-attribute (which is a Pattern as well). A preliminary version of what I'm working on is available inside the xslkey branch at git://gitorious.org/~lemma/qt/lemmas-qt.git.

      Hope I could make my case clear. If not, just ask please.

      Attachments

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

        Activity

          People

            laknoll Lars Knoll
            mleupold Michael Leupold
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes