Generating tables of contents with XSLT
Generating tables of contents with XSLT
For XML files (Have to rewrite these examples at some point ...)
table-of-contents.xsl shows how to make TOCs for xml files
table-of-contents2.xsl corrects a problem in the name of exercices anchors
For XHTML files (served as xml). Works with Firefox, not with IE 6.
xhtml-toc-ns.xsl
makes a TOC with XHTML files that have h1 and h2 headers. Click
xhtml-sample-ns.xml
to see.
xhtml-toc-ns-numbered.xsl
makes a numbered TOC for XHTML files that have h1 and h2 headers. Also adds numbers to h1/h2. Click
xhtml-sample-ns-numbered.xml
For XHTML files (served as xml), UGLY XSLT coding and works with IE 6/Firefox
xhtml-toc.xsl
- Click
xhtml-sample.xml
xhtml-toc-numbered.xsl
works VERY slowly in Firefox 1.5, but ok in IE 6 and Firefox 3 for any file size. Click
xhtml-sample-numered.xml
Stuff that does NOT work with XHTML files, because I didn't understand namespaces. See the comments inside the XSLT.
xhtml-toc-bad.xsl fails. Click
xhtml-sample-bad.xml
xhtml-toc-bad2.xsl fails too. Click
xhtml-sample-bad2.xml
Last modified: Mon Feb 26 13:17:30 CET 2007
Name
Last modified
Size
Description
Parent Directory
-
table-of-contents-sans-id.xsl
2015-09-28 19:18
1.7K
table-of-contents-sans-id.xml
2015-09-28 14:49
1.8K
table-of-contents-ids.xml
2015-09-28 14:47
1.8K
table-of-contents-ids.xsl
2015-09-28 14:46
1.7K
HEADER.html
2009-04-21 18:11
1.9K
xhtml-toc-ns-numbered.xsl
2009-04-21 18:09
3.3K
xhtml-toc-ns.xsl
2009-04-21 18:06
3.6K
xhtml-toc-numbered.xsl
2007-02-26 13:14
3.8K
xhtml-toc.xsl
2007-02-24 19:20
3.1K
xhtml-toc-bad2.xsl
2007-02-24 19:01
2.2K
xhtml-toc-bad.xsl
2007-02-24 19:01
2.3K
xhtml-sample-ns-numbered-result.xml
2007-02-24 18:56
12K
xhtml-sample-ns-numbered.xml
2007-02-24 18:50
6.4K
xhtml-sample-ns.xml
2007-02-24 18:14
6.4K
xhtml-sample-result.html
2007-02-24 16:25
12K
xhtml-sample-bad2-result.html
2007-02-24 16:25
13K
xhtml-sample-bad-result.html
2007-02-24 16:25
13K
xhtml-sample-numered.xml
2007-02-24 16:06
6.4K
xhtml-sample-bad2.xml
2007-02-24 15:56
6.4K
xhtml-sample-bad.xml
2007-02-24 15:56
6.4K
xhtml-sample.xml
2007-02-24 15:55
6.4K
table-of-contents2.xsl
2004-06-28 11:46
3.3K
table-of-contents2.xml
2004-06-28 11:40
3.2K
table-of-contents.xml
2003-11-27 11:27
3.2K
table-of-contents.xsl
2003-11-27 11:23
3.3K
travaux.dtd
2003-10-23 17:51
2.4K