I have an XML file with information on movies. I want my expression to return the directors in the XML that have directed more than 1 movie.
What I have now is:
I solved the problem with the following code:
let $directors := distinct-values( for $director in //director where count(result/videos/video[director = $director]) > 1 return $director ) return $directors