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

VerifyError loading translet compiled with XSLTC from stylesheet with very large template that uses local variable in a predicate, xsl:sort or xsl:number

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 2.7
    • 2.7.1
    • XSLTC
    • None
    • PatchAvailable

    Description

      A VerifyError with a message similar to "Localvariable 5 contains the wrong type" might result if a stylesheet compiled by XSLTC contains a very large template, where the template contains a local variable that is referenced within a predicate or in one of expressions of an xsl:sort or xsl:number instruction. Here's the fragment that triggers the problem in a sample test case that I will attach:

      <xsl:variable name="v" select="count(/doc/*)"/>
      <xsl:if test="/doc/mid/mid/ch[$v+400 > .]">
      <yes/>
      </xsl:if>

      Attachments

        1. j2377.xsl
          24 kB
          Henry Zongaro
        2. j2377.xml
          0.0 kB
          Henry Zongaro
        3. j2377.out
          0.1 kB
          Henry Zongaro
        4. j2377.patch.txt
          2 kB
          Henry Zongaro

        Activity

          People

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

            Dates

              Created:
              Updated:
              Resolved: