Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Categories

Welcome to the new platform of Programmer's Heaven! We apologize for the inconvenience caused, if you visited us from a broken link of the previous version. The main reason to move to a new platform is to provide more effective and collaborative experience to you all. Please feel free to experience the new platform and use its exciting features. Contact us for any issue that you need to get clarified. We are more than happy to help you.

GETTING COUNT AND POSITION using XSLT 1.0

udaybobudaybob Posts: 2Member
Hi Guys,

Here is my requirement.

sample XML



...
...
uday
...
....


...
...
uday
...
....


...
...
bhaskar
...
....


...
...
bhaskar
...
....



...
...
bhaskar
...
....


Desired o/p XML



..
1
2
....


..
2
2
....


..
1
3
....


..
2
3
....


..
3
3
....



for each item in the input xml, we get item in the output.
total represents the no. of items with the same title value
position represents the position of the item with a paticular title.

Iam using xslt 1.0. I guess it is possible by using keys.Can someone help me out please

Thanks you in advance
Uday

Comments

Sign In or Register to comment.