Hi Sergey, It looks like this is a bug, but you will probably be able to put "and" expression into first predicate instead of second predicate. At least I never had problems with this. Thanks, Dmitry -----Original Message----- From: Sergey Vladyko [mailto:[EMAIL PROTECTED]] Sent: Tuesday, July 31, 2001 07:15 To: [EMAIL PROTECTED] Subject: bug 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(EpPrioDa te),$FaxDateYearBefor,string($language))])!=0'> -- don`t work similar if i try last() function or position().
