Test case for insert element rules
3.00
32.25
132.99
xforms-insert
9.3.5.a insert element rules
You should see a message that says 'xforms-insert' after clicking either insert button.
The first insert button should insert the new item at the beginning, the second should
insert the new item at index 2 (1.5 is rounded to 2). If the cursor rests at an index when
a button is pushed, the value at that index will be replaced with a blank name and 0.00 price
in addition to the changes above.
Line Item
Name
Insert a new item at index 1
0.00
Insert a new item at index 1.5
0.00
The item is being inserted outside the range, so the index should be replaced
with either 1 or the size of the node-set (3), whichever is closer. If the cursor rests at an index when
a button is pushed, the value at that index will be replaced with a blank name and 0.00 price
after the above changes take place.
Insert a new item at index 100
0.00
remove current item
index=