The above value-of gets me to the node I require but to get the node number e.g. c6 -> 1, c8 -> 2 etc.
Also @source seems to need to have the full path which then ignores the for-each (always picks the first element).