This is the mail archive of the
docbook-apps@lists.oasis-open.org
mailing list .
Re: qandaentry/question id
- To: Michael Wiedmann <mw at miwie dot in-berlin dot de>
- Subject: Re: DOCBOOK-APPS: qandaentry/question id
- From: Nik Clayton <nik at nothing-going-on dot demon dot co dot uk>
- Date: Mon, 23 Apr 2001 22:34:27 +0100
- Cc: DocBook-Apps ML <docbook-apps at lists dot oasis-open dot org>
- Organization: Nik at home, where there's nothing going on
- References: <20010423205702.A5180@miwie.in-berlin.de>
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