This is the mail archive of the xsl-list@mulberrytech.com mailing list .


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Auto generating a table of contents


Hi,

I've a problem trying to figure out the xsl to generate a 'table of contents'
for a document I'm working on.  The xml goes something like...

<contents/>
<section><heading>A</heading>
	<heading>B</heading>
	<heading>C</heading>
</section>
<section><heading>D</heading>
	...
</section>

where the tag <contents/> is I wish to insert a table of contents, ie
1. A
1.1. B
1.2. C
2. D

and still generate the actual contents underneath...

1. A
blah blah blah
1.1. B
blah blah blah blah blah blah

etc.

Can anyone help?

Thanks,

John.


 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]