GETTING COUNT AND POSITION using XSLT 1.0 - Programmers Heaven

Howdy, Stranger!

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

Categories

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.