fwiw, on our 'stax caveats' wiki we have the following entry: Can't iterate empty list
I forget the exact error, something like StaxIterateEmptyList, but if you try to be clever and create a loop which might not ever iterate, i.e. <loop var='foo' in='range(1,i)'> where i may be 1 or less, this will blow up for i < 2, as range() will generate a list [], and STAX will throw an error instead of treating it as a noop. ----- "David Bender" <bda...@us.ibm.com> wrote: > Can you show us the STAX job you are using when you get the > STAXEmptyList exception? > > Thanks, > David > > > David Bender > STAF/STAX Development > IBM Software Group, WPLC > 11501 Burnet Rd. > Bldg. 903-5B002 > Austin, TX 78758-3400 > Phone (T/L): 1-512-286-5315 (363-5315) > ITN: 23635315 > Email: bda...@us.ibm.com > > > > > > > staf-stax user <stafstaxu...@gmail.com> > > 12/16/2009 09:04 AM > To staf-users@lists.sourceforge.net > > cc > > Subject [staf-users] How to handle Empty List in Stax > > > > > Hi > > How do we handle Empty list in stax? I am getting STAXEmptyList > exception. > > Regard's > ------------------------------------------------------------------------------ > This SF.Net email is sponsored by the Verizon Developer Community > Take advantage of Verizon's best-in-class app development support > A streamlined, 14 day to market process makes app distribution fast > and easy > Join now and get one step closer to millions of Verizon customers > http://p.sf.net/sfu/verizon-dev2dev > _______________________________________________ > staf-users mailing list > staf-users@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/staf-users > > > ------------------------------------------------------------------------------ > This SF.Net email is sponsored by the Verizon Developer Community > Take advantage of Verizon's best-in-class app development support > A streamlined, 14 day to market process makes app distribution fast > and easy > Join now and get one step closer to millions of Verizon customers > http://p.sf.net/sfu/verizon-dev2dev > _______________________________________________ > staf-users mailing list > staf-users@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/staf-users ------------------------------------------------------------------------------ This SF.Net email is sponsored by the Verizon Developer Community Take advantage of Verizon's best-in-class app development support A streamlined, 14 day to market process makes app distribution fast and easy Join now and get one step closer to millions of Verizon customers http://p.sf.net/sfu/verizon-dev2dev _______________________________________________ staf-users mailing list staf-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/staf-users