I have to count how many times of the authors show in a XML file. Lets say,as attached - XML
Frank Manola has appeared 2 times and Tolga Yurek has appeared 1 time.
My desire result is:
Frank Manola , 2
Tolga Yurek, 1
I used this code, but I cannot archive it:
for $a in doc("dblp.xml")/dblp/* let$c := count ($a/author) return ($a/author , $c)
Result become very weird like this:unwanted result
What error in my code? What can I group and sum them up?
groupclause. - Martin Honnen