This is the mail archive of the
docbook@lists.oasis-open.org
mailing list for the DocBook project.
Re: xref text
- To: docbook at lists dot oasis-open dot org
- Subject: Re: DOCBOOK: xref text
- From: Norman Walsh <ndw at nwalsh dot com>
- Date: Fri, 3 Mar 2000 13:24:45 -0500
- References: <38BB0315.3E10ED4B@mandrakesoft.com>
- Reply-To: docbook at lists dot oasis-open dot org
/ Camille Begnis <camille@mandrakesoft.com> was heard to say:
| Is there a parameter to change? I couldn't find it.
Yes, although I'm not sure it's easy to change in the current stylesheet
configuration. I'll see if I can make it easier in the next release.
If you look in common/dbl1*.dsl, you'll find definitions like this:
(define (en-xref-strings)
(list (list (normalize "appendix") (if %chapter-autolabel%
"&Appendix; %n"
"the &appendix; called %t"))
...
To generate the xref text for an element, the stylesheets look up the
appropriate element in this list, take the resulting string and
replace %n with the element number, %t with the element title, and
%p with the element page number. So if you change the text for
chapter to
"&Chapter; %n, %t"
You'll get the chapter and title.
Be seeing you,
norm
--
Norman Walsh <ndw@nwalsh.com> | A man may destroy everything
http://www.oasis-open.org/docbook/ | within himself, love and hate and
Chair, DocBook Technical Committee | belief, and even doubt, but as
| long as he clings to life he
| cannot destroy fear.--Joseph Conrad