File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes XML and Related Technologies and the fly likes create a table of content in xslt Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Engineering » XML and Related Technologies
Bookmark "create a table of content in xslt" Watch "create a table of content in xslt" New topic

create a table of content in xslt

Rakesh Keerthi
Ranch Hand

Joined: Jul 16, 2012
Posts: 136
I have the below 2 xml files.

file1: Name= BVI-Chapter01

file 2: BVI-Chapter02

i want to create an xslt file that gives me table of contents as in the below HTML source. if click on the link it should open the document and point to that section containing that number. please let me know how do i do it.

i know that it may be against forum rules to ask for the code. but i'm really unable know a way of doing this task please let me know how to do it.

It is sorta covered in the JavaRanch Style Guide.
subject: create a table of content in xslt
Similar Threads
dynamic Checkboxe value retrieval
struts-2 (set values to action class)
xslt output problem
spaces while populating using s:iterator
Table with Scrollbar