p.xml
<documents>
<dblp>
<inproceedings>
<author>John Cieslewicz</author>
<author>Kenneth A. Ross</author>
<author>Kenneth A. Ross</author>
</inproceedings>
</dblp>
<dblp>
<inproceedings>
<author>Yi-Reun Kim</author>
<author>Kyu-Young Whang</author>
<author>John Cieslewicz</author>
</inproceedings>
</dblp>
<documents>
我的代码是
for $c in doc("C:\Users\User\Desktop\p.xml")//documents/dblp/inproceedings
where fn:count($c/author) != fn:count(fn:distinct-values($c/author))
return $c/author
我需要John Cieslewicz和Kenneth A. Ross作为结果,但它只显示Kenneth A. Ross