----- Original Message -----
Sent: Monday, June 14, 2010 2:25 PM
Subject: [docbook-apps] Adding an ID
attribute to HTML output
I'm trying to add an ID attribute to DocBook's HTML TOC generation, like
<span class="sect1"><a id="Overview"
The ID value is simply taken from the xml:id value of the respective XML
I need a nudge in the right direction. When I take a peek inside the
DocBook dragon, er, rather, collection of .xsl files, I find that
docbook-xsl-ns-1.75.1/html/autotoc.xsl in the html folder seems to be
responsible for the TOC generation. I also see that line 318* right after the
<span> nicely adds a class name to the enclosing span such that
<span class="sect1"> and so forth is written.
I am guessing that if I add a similar line right after the subsequent
<a>, I can get what I'm after. Something like:
But my question is, what do I add in for ???
And my other question is, is there a way to handle this in the