Layout Problems in Content Index

View: New views
1 Messages — Rating Filter:   Alert me  

Layout Problems in Content Index

by IMRANKHAN :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi,
I am currently working on an assigment in which i have to make a contents index like shown at the end.
The xml given contains nested <topic> tags
<topic>
  <title>Purpose</title>
  <body></body>
</topic>
....
......
.....
<topic>
 <title>POLICY</title>
   <topic>
   <title>RECORDS OWNERSHIP</title>
       <topic>
          <title>Child Of Records Ownership</title>
       </topic>
   </topic>
   <topic>
  <title>RECORDS CREATION</title>
   </topic>

</topic>

My Problem is that I am not being able to place the subtopic in proper layout as shown below , the subtopic index number should fall exactly below the title of its parent.
eg

4....Policy
     |
--->4.1....Records OwnerShip
             |
----------->4.1.1....Child Of Records Ownership

See above 4.1 is exactly below Policy ( indicated by |  symbol) .
4.1.1 is exactly below Records Ownership (indicated by | symbol).
Also notice there is common difference  between index number and title.
Is it possible ?   Please reply with example if possible.

Thanks

1. PURPOSE........................................................................................................................3

2. REVISION HISTORY............................................................................................................3
3. PERSONS AFFECTED.........................................................................................................3
4. POLICY..........................................................................................................................3
   4.1 RECORDS OWNERSHIP................................................................................................3
   4.2 RECORDS CREATION..................................................................................................4
   4.3 RECORDS RETENTION.................................................................................................4
   4.4 RECORDS DESTRUCTION.............................................................................................4
5. PROCEDURES...................................................................................................................5
   5.1 RECORDS OWNERSHIP................................................................................................5
   5.2 RECORDS CREATION......