OASIS Mailing List ArchivesView the OASIS mailing list archive below
or browse/search using MarkMail.

 


Help: OASIS Mailing Lists Help | MarkMail Help

docbook message

[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [Elist Home]


Subject: Re: DOCBOOK: 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



[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [Elist Home]


Powered by eList eXpress LLC