This is the mail archive of the
docbook-apps@lists.oasis-open.org
mailing list .
Re: Re: DOCBOOK: xref or link?
- To: "docbook-apps at lists dot oasis-open dot org" <docbook-apps at lists dot oasis-open dot org>
- Subject: Re: DOCBOOK-APPS: Re: DOCBOOK: xref or link?
- From: Bob McIlvride <robert at cogent dot ca>
- Date: Mon, 11 Jun 2001 10:42:58 -0400
- Organization: Cogent Real-Time Systems, Inc.
- References: <Pine.LNX.4.21.0106071216170.12804-100000@miami.datech2.er.heitec.net><8766e8wkpt.fsf@nwalsh.com><4.2.0.58.20010608164928.00d0f9b0@webmail.lure.u-psud.fr><3B20F2E0.CC3A5E80@cogent.ca> <3B2277FE.780CEE10@kosek.cz>
That did the trick. Of course, we had to modify each of "appendix",
"sect1", "sect2" ... to get all those elements as well. And we had to
include the common/dblen.ent as an entity to have all the entities
resolve, using this line at the top of our customized stylesheet:
<!ENTITY % en.words SYSTEM
"/usr/lib/sgml/stylesheets/nwalsh-modular/common/dbl1en.ent"> %en.words
Thank you very much Jirka.
Jirka Kosek wrote:
> Make chapter target of your xref and then change rendering of xref in
> DSSSL stylesheet. Look at file common/dbl1en.dsl and modify following
> lines
>
> (list (normalize "chapter") (if %chapter-autolabel%
> "&Chapter; %n"
> "the &chapter; called %t"))
>
> to
>
> (list (normalize "chapter") (if %chapter-autolabel%
> "&Chapter; %n - %t"
> "the &chapter; called %t"))
>
> %t is substitued by chapter title. Cleaner method than directly
> modifying stylesheets is place whole (en-xref-strings) definition into
> your customized stylesheet.
Cheerio!
Bob
---------------------------------------
Robert McIlvride (robert@cogent.ca)
Cogent Real-Time Systems (www.cogent.ca)