Sorry, I assumed you would work out what I was trying to say.
If NODES is the expression that selects the nodes you want to "loop over", and CRITERIA is the criteria for matching, then NODES[CRITERIA][1] selects the first node that matches the criteria. For example //blonde[eye-colour='blue'][1] selects the first blue-eyed blonde.
Michael Kay
http://www.saxonica.com/
Author, XSLT Programmer's Reference and XPath 2.0 Programmer's Reference