Hi All,
I have one function that connect to database and retrive data in form of Hashtable.
My Hashtable may be like this.
MsgID         ParentID                   
1                    0                               
2                    0
3                    0
4                    0
5                    1
6                    1
7                    6
8                    7
9                    2
10                  2
11                  5
12                  5
 
Tree structure would be like this based on MsgID and ParentID
MsgID will be the Id of a tag and parentid is the id of the parent with which it is linked.
1(parent0)
|
|
-------5(child of 1)
        |
        |___11(child of 5)
        |
        |____12(child of 5 and sibling of 11)
____6(child of 1 and sibling of 5)
        |
        |____7(child of 6)
                |
                |___8(child of 7)
2(parent 2)
|
|____9(child of 2)
|
|____10(child of 2)
 
3(parent 3)
 
4(parent 4)
Like this I have to show dynamic tree like structure in HTML form.I am using cocoon2.0
This can be either handled by XSP or XSL or both.
Please suggest me how to solve the recursive loop problem using XSL..
How can I apply logic to have dynamic tree structure building function based on the values of Hashtable keys and values.
Pls suggest  ideas.
Thanks,
Niket
 

Reply via email to