Generating tables of contents with XSLT

Generating tables of contents with XSLT

For XML files (Have to rewrite these examples at some point ...) For XHTML files (served as xml). Works with Firefox, not with IE 6. For XHTML files (served as xml), UGLY XSLT coding and works with IE 6/Firefox Stuff that does NOT work with XHTML files, because I didn't understand namespaces. See the comments inside the XSLT.
Last modified: Mon Feb 26 13:17:30 CET 2007
[ICO]NameLast modifiedSizeDescription

[PARENTDIR]Parent Directory  -  
[TXT]HEADER.html2009-04-21 18:11 1.9K 
[   ]table-of-contents-ids.xml2015-09-28 14:47 1.8K 
[   ]table-of-contents-ids.xsl2015-09-28 14:46 1.7K 
[   ]table-of-contents-sans-id.xml2015-09-28 14:49 1.8K 
[   ]table-of-contents-sans-id.xsl2015-09-28 19:18 1.7K 
[   ]table-of-contents.xml2003-11-27 11:27 3.2K 
[   ]table-of-contents.xsl2003-11-27 11:23 3.3K 
[   ]table-of-contents2.xml2004-06-28 11:40 3.2K 
[   ]table-of-contents2.xsl2004-06-28 11:46 3.3K 
[   ]travaux.dtd2003-10-23 17:51 2.4K 
[TXT]xhtml-sample-bad-result.html2007-02-24 16:25 13K 
[   ]xhtml-sample-bad.xml2007-02-24 15:56 6.4K 
[TXT]xhtml-sample-bad2-result.html2007-02-24 16:25 13K 
[   ]xhtml-sample-bad2.xml2007-02-24 15:56 6.4K 
[   ]xhtml-sample-ns-numbered-result.xml2007-02-24 18:56 12K 
[   ]xhtml-sample-ns-numbered.xml2007-02-24 18:50 6.4K 
[   ]xhtml-sample-ns.xml2007-02-24 18:14 6.4K 
[   ]xhtml-sample-numered.xml2007-02-24 16:06 6.4K 
[TXT]xhtml-sample-result.html2007-02-24 16:25 12K 
[   ]xhtml-sample.xml2007-02-24 15:55 6.4K 
[   ]xhtml-toc-bad.xsl2007-02-24 19:01 2.3K 
[   ]xhtml-toc-bad2.xsl2007-02-24 19:01 2.2K 
[   ]xhtml-toc-ns-numbered.xsl2009-04-21 18:09 3.3K 
[   ]xhtml-toc-ns.xsl2009-04-21 18:06 3.6K 
[   ]xhtml-toc-numbered.xsl2007-02-26 13:14 3.8K 
[   ]xhtml-toc.xsl2007-02-24 19:20 3.1K