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: Stéphane Bline <sbline at apsydev dot com>
- Date: Wed, 1 Mar 2000 14:38:34 +0100
- References: <38BB0315.3E10ED4B@mandrakesoft.com>
- Reply-To: docbook at lists dot oasis-open dot org
Camille,
To display the title of say a Chapter you would have to amend your source in
the following way:
[...]
<preface><title>préface</title>
<para>
See <link linkend="samba" endterm="samba.title"> 'Change here
</para>
</preface>
<chapter id="samba"><title id="samba.title">SAMBA</title> 'Change here
<sect1><title>What is samba?</title>
[...]
I changed the xref element into a link element just because it's the way I
do it. I suspect it works the same for xref but I can't remember off the top
of my head. Can anyone confirm this ?
Notice the change in the link element and in the chapter/title element. An
id has been added to the title element of the chapter. Your cross-reference
now references the chapter id as the linkend and the chapter title id as the
link endterm (text if you will).
Hope this helps,
Stéphane Bline.
----- Original Message -----
From: Camille Begnis <camille@mandrakesoft.com>
To: DocBookList <docbook@lists.oasis-open.org>
Sent: Tuesday, February 29, 2000 12:21 AM
Subject: DOCBOOK: xref text
> The doc says that:
>
> "A straight link generates the cross-reference text: Chapter 2, "The
> Second Chapter""
>
> Though in my case, the quoted title is not shown
> The following example just says:
> See Chapter 1.
>
> Is there a parameter to change? I couldn't find it.
>
> Thanks, Camille.
>
> ----------------
>
> [...]
> <preface><title>préface</title>
> <para>
> See <xref linkend="samba">.
> </para>
> </preface>
> <chapter id="samba"><title>SAMBA</title>
>
> <sect1><title>What is samba?</title>
> [...]