我想使用xslt在所有變量完全匹配時刪除重複項。如何使用xslt刪除重複的xml-節點?
在這個XML節點3應該被刪除,因爲它是節點1
<root>
<trips>
<trip>
<got_car>0</got_car>
<from>Stockholm, Sweden</from>
<to>Gothenburg, Sweden</to>
<when_iso>2010-12-06 00:00</when_iso>
</trip>
<trip>
<got_car>0</got_car>
<from>Stockholm, Sweden</from>
<to>New york, USA</to>
<when_iso>2010-12-06 00:00</when_iso>
</trip>
<trip>
<got_car>0</got_car>
<from>Stockholm, Sweden</from>
<to>Gothenburg, Sweden</to>
<when_iso>2010-12-06 00:00</when_iso>
</trip>
<trip>
<got_car>1</got_car>
<from>Test, Duncan, NM 85534, USA</from>
<to>Test, Duncan, NM 85534, USA</to>
<when_iso>2010-12-06 00:00</when_iso>
</trip>
<trips>
<root>
可能重複[如何刪除使用XSLT重複的XML節點(http://stackoverflow.com/questions/355691/how-to-remove-duplicate-xml-nodes-using-xslt) – 2010-12-05 22:33:32