BUG: Position() and Last() XPath Functions Are Ignored When You Use Them as XSLT Function Arguments
The position() and last() XPath functions are ignored when you use them directly as XSLT function (standard, script, and extension function) arguments in XPath query expressions that are used in XSLT style sheets.
http://www.kbalertz.com/Feedback_324033.aspx