Please try to pull down the latest version of the XSLTC code. I saw
this bug about a week ago and added a fix for it then.

Morten


Sergey Vladyko wrote:
> 
> ava.lang.ArrayIndexOutOfBoundsException: 2 > 1
>         at java.util.Vector.insertElementAt(Vector.java:551)
>         at org.apache.xalan.xsltc.runtime.AbstractTranslet.addVariable(Unknown 
>Source)
>         at RequestPageValidate.applyTemplates()
>         at RequestPageValidate.applyTemplates()
>         at RequestPageValidate.applyTemplates()
>         at RequestPageValidate.applyTemplates()
>         at RequestPageValidate.transform()
>         at org.apache.xalan.xsltc.runtime.AbstractTranslet.transform(Unknown Source)
>         at test_xsl.translet1(test_xsl.java:128)
>         at test_xsl.<init>(test_xsl.java:75)
>         at test_xsl.main(test_xsl.java:257)
> 
> RequestPageValidate - is a translate & a bug at place that equals
> to <xsl:for-each
> 
>select='/FORM/EpPrioSec/EpPrioTbl/PrioEnt[java:dateBefor(string(EpPrioDate),$FaxDateYearBefor,string($language))][position()=1]'>
> but
> <xsl:for-each
> 
>select='/FORM/EpPrioSec/EpPrioTbl/PrioEnt[java:dateBefor(string(EpPrioDate),$FaxDateYearBefor,string($language))]'>
> works fine
> 
> and
> <xsl:if
> 
>test='count(/FORM/EpPrioSec/EpPrioTbl/PrioEnt[java:dateBefor(string(EpPrioDate),$FaxDateYearBefor,string($language))])!=0'>
> -- don`t work
> 
> similar if i try last() function or position().

Reply via email to