[docbook-css] [ANN] Firefox DocBook 'Outliner' Extension

David Holroyd dave at badgers-in-foil.co.uk
Mon, 1 Nov 2004 01:26:43 +0000


On Tue, Oct 19, 2004 at 06:57:54PM +0000, David Holroyd wrote:
> On Mon, Oct 18, 2004 at 09:14:48PM +0100, martin.gautier@myrnham.co.uk wrote:
> > I noticed the website mentions that CSS can't do TOCs. Having a TOC has 
> > been an issue for me and I've done some work on it recently. I can get a 
> > pop-up TOC to appear in Mozilla quite nicely. Unfortunately, at this 
> > stage, it interferes with the main text (ie. it pops up down the left hand 
> > side of the page) and needs code in the XML doc which works for the 
> > browser but makes the XML invalid. I have some ideas on fixing this and 
> > I'll get back to the list when I start looking at the problem again...
> 
> I recall seeing an 'Outline' mozilla extension for HTML pages (I assume
> that this wouldn't require changes to the document to make it work).
> 
> Maybe I'll have a poke at that, to see how it does its magic.

I hacked on this a bit today, and here's what I came up with:

  http://www.badgers-in-foil.co.uk/projects/docbook-css/outliner/

It works as a simple navigation aid, but lacks polish at the moment.

In particular, the code has a whilelist of 'sectioning' elements allowed
to appear in the TOC; this list is incomplete, so let me know if stuff
you think should appear isn't actually turning up.


dave