Build 6.0.29 (Probably applies to 5.4 also, but not tested)
A Bizdoc with an xa:loop containing two identical elements displaying the value of the sessionvar used as the loop counter, displays the values correctly. However, if another element is added as a third child of the xa:loop with an xa:remove="yes" (inlcuding a BizDoc reference), the first "read" of the sessionvar yields an incorrect result, after the first iteration.
It is displaying a value greater than the test condition (in the case of a loop incrementing from 1 and a condition "< 4", displays the value 4 which is not a valid match of the condition. Furthermore, a subsequent element with the exact same expression yeilds a different result.
The results should be the same for both elements with the same expression. The result should be the same whether another element with xa:remove is added or not. An element with xa:remove is corrupting the results.
See attached example.