[xsl] Generate nested TOC from flat XHTMTL

Subject: [xsl] Generate nested TOC from flat XHTMTL
From: "Jesper Tverskov" <jesper@xxxxxxxxxxx>
Date: Mon, 4 Sep 2006 12:58:11 +0200
How can I generate a TOC in correctly nested ordered XHTML list elements
from the flat heading structure in XHTML 1.0?
I am only interested in correctly nested ordered lists as output, like this:

<ol>
	<li>
		<ol>
			<li/>
		</ol>	
	</li>
	<li/>
</ol>

XSLT 2.0 will do. I have no problems with the first level.


Best regards,
Jesper Tverskov

Current Thread