This is the mail archive of the docbook@lists.oasis-open.org mailing list for the DocBook project.


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

Re: xref text


/ 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


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