New function "list::top"


I'd like to see a function that will return the value of the last item added (the "top") much like the "pop" function without removing that item. This will allow me to add an item and then reference it like:
<list-add list="xyz" value="item"/>
<property name="action.${list::top('xyz')" value="something"/>
Currently I
<property name="a" value="item"/>
<list-add list="xyz" value="${a}"/>
<property name="action.${a}" value="something"/>


jkohlhepp wrote Nov 1, 2007 at 1:32 AM

Could you just do a ${list::get-item(list::count-1))}? Not sure if "get-item" is the name of the function but you get the idea...

wrote Feb 2, 2013 at 2:32 AM