[xsl] Generating Unique ID

Subject: [xsl] Generating Unique ID
From: "Arun Sinha" <arunsinha666@xxxxxxxxxxx>
Date: Tue, 06 Dec 2005 07:55:54 +0000
Hi,

I have an xml file and I need to present it in html in the following format :-

A
   AA
        AAA
               AAAA
               ........
       AAB
              AABA
              .......
       .......
   AB
       ABA
              ABAA
              ........
       ......
  .....
B
...


I am able to present the data in the same format but the problem I have now is that I have to assign a unique ID to these data.


What I would like is that the IDs generated at lower level should contain the ID of parent node as well. For example :-

ID of AA = (ID of A + ID of AA)
ID of AAA = (ID of A + ID of AA + ID of AAA)

and so on.

Thanks in advance.

Arun

Current Thread