Cách tính các giá trị khác biệt trong một nút trong XSLT?Cách tính các giá trị khác biệt trong một nút?
Ví dụ: Tôi muốn đếm số lượng các nước tồn tại trong các hạch quốc gia, trong trường hợp này, nó sẽ là 3.
<Artists_by_Countries>
<Artist_by_Country>
<Location_ID>62</Location_ID>
<Artist_ID>212</Artist_ID>
<Country>Argentina</Country>
</Artist_by_Country>
<Artist_by_Country>
<Location_ID>4</Location_ID>
<Artist_ID>108</Artist_ID>
<Country>Australia</Country>
</Artist_by_Country>
<Artist_by_Country>
<Location_ID>4</Location_ID>
<Artist_ID>111</Artist_ID>
<Country>Australia</Country>
</Artist_by_Country>
<Artist_by_Country>
<Location_ID>12</Location_ID>
<Artist_ID>78</Artist_ID>
<Country>Germany</Country>
</Artist_by_Country>
</Artists_by_Countries>
Đôi mắt của tôi đang lấp lánh trên hàng loạt các dòng sau đó tôi tìm thấy nugget ở cuối –