Vote count:
0
As an extension to the question that solved here, how we can count number of frequency of each tag and attribute?
For example, for this document:
<a>
<apple color="red"/>
<banana color="yellow"/>
<sugar taste="sweet"/>
<cat size="small"/>
</a>
something like this result (preferably in two separate tables) is desired:
For tags: apple = 2, banana =1, sugar =1, cat=1
For attributes: color= 2, taste=1, size=1
asked 30 secs ago
Counting frequency of tags / attributes in XML using XSLT
Aucun commentaire:
Enregistrer un commentaire