> What i want is not just to get count for , but only the count of > under where My bad assuming f is root - count(//s[@ba=1]); Still described at the same url I posted before. Mark ----------------------------------- mark@safefrombees.com ICQ: 3094740 Safe From Bees [www.safefrombees.com]