Uploaded image for project: 'XalanJ2'
  1. XalanJ2
  2. XALANJ-2151

XSLTC incorrectly optimizes predicates containing numeric values

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Critical
    • Resolution: Unresolved
    • 2.6
    • None
    • XPath-function
    • None
    • fp2

    Description

      XSLTC attempts to optimize predicates whose values are numeric by wrapping the iterator for the expression that is being filtered with an NthPositionIterator. The latter iterator skips directly to the relevant item in the nested iterator. The problem is that this optimization only applies if the value of the predicate is unaffected by the context item, but XSLTC is not preventing the optimization from being applied in all such cases. I will attach an example that demonstrates the problem.

      Attachments

        1. j2151.out
          0.2 kB
          Henry Zongaro
        2. j2151.xml
          0.1 kB
          Henry Zongaro
        3. j2151.xsl
          0.3 kB
          Henry Zongaro

        Activity

          People

            Unassigned Unassigned
            zongaro@ca.ibm.com Henry Zongaro
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated: