0
我有一个很大的XML文件,其中的人员具有标识值。一个简化版本可能是:如果属性值单数,请执行某些操作
<start>
<text 1>
<person key="A00001">Adam Ant</person>
<person key="A00001">Mr. A.</person>
</text 1>
<text 2>
<poem>
<person key="A00002">Mrs. Bee</person>
<person key="A00003">Cecily</person>
<person key="A00001">A.</person>
</poem>
</text 2>
</start>
我试图找出那些在整个文档中只有一次value-key出现的人。我猜这个解决方案与generate-id(。)有关,但我不确定。我如何使用XSLT将A00002和A00003作为输出?
(XSLT 2.0)