I have this XML file, from which I\'d like to count the number of users referenced in it. But they can appear in more than one category, and I\'d like these duplicates not t
I have a better answer
count(//user[not(. = following::user/.)])