This is the mail archive of the mailing list .

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: qandaentry/question id

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

For example, take a look at

and the code that starts

    <!-- Override generate-anchor ...

for an example of how to do this.

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

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]