Details
-
Bug
-
Resolution: Won't Do
-
P3: Somewhat important
-
None
-
4.7.0
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.