current() returns a node and not a number. So doing
current() = 1
does not make sense, I guess you want
position() = 1
respectively
position() = last()
__________________
Martin Honnen
Microsoft MVP (XML, Data Platform Development) 2005/04 - 2013/03
My blog
|