On Mon, Apr 23, 2001 at 08:57:02PM +0200, Michael Wiedmann wrote:
> Carsten Wartmann pointed me to a problem in the generated HTML version
> of the "DocBook DSSSL FAQ":
>
> All links for <question>s were pointing to "#.QQ" because of
> missing id's for every <question>. After supplying every question with a
> 'id' attribute the links are correct (pointing e.g. to '#H1').
>
> Is there a more or less automatic procedure to generate the id's
> instead of doing this by hand?
Sort of.
Create a stylesheet customisation layer based off Norm's stylesheets,
and override the generate-anchor function to use the question numbers
instead.
For example, take a look at
http://www.freebsd.org/cgi/cvsweb.cgi/doc/share/sgml/freebsd.dsl
and the code that starts
<!-- Override generate-anchor ...
for an example of how to do this.
N
--
Internet connection, $19.95 a month. Computer, $799.95. Modem, $149.95.
Telephone line, $24.95 a month. Software, free. USENET transmission,
hundreds if not thousands of dollars. Thinking before posting, priceless.
Somethings in life you can't buy. For everything else, there's MasterCard.
-- Graham Reed, in the Scary Devil Monastery
PGP signature