Of course, the brute-force approach is to loop through the fotos node, and check each element for nr='whatever' ... think the XQL approach is more eloquent and definitely much faster.