Subject: Auto generating a table of contents
From: John Morrison <john.morrison@xxxxxxxxxxxx>
Date: Tue, 07 Mar 2000 08:53:57 +0000
|
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
|