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