[ 
https://issues.apache.org/jira/browse/XALANJ-2377?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12488749
 ] 

Christine Li commented on XALANJ-2377:
--------------------------------------

The patch is reasonable and it resolved the problem. 

> VerifyError loading translet compiled with XSLTC from stylesheet with very 
> large template that uses local variable in a predicate, xsl:sort or xsl:number
> ---------------------------------------------------------------------------------------------------------------------------------------------------------
>
>                 Key: XALANJ-2377
>                 URL: https://issues.apache.org/jira/browse/XALANJ-2377
>             Project: XalanJ2
>          Issue Type: Bug
>          Components: XSLTC
>    Affects Versions: The Latest Development Code
>            Reporter: Henry Zongaro
>         Assigned To: Henry Zongaro
>         Attachments: j2377.out, j2377.patch.txt, j2377.xml, j2377.xsl
>
>
> 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>

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to