Sorry, I missed that your context node was not the item-data but the child of item-data, so you need to go up to the grandparent - ../../@id
Michael Kay
http://www.saxonica.com/
Author, XSLT Programmer's Reference and XPath 2.0 Programmer's Reference