docbook: Xref & Link
Subject:
Re: Xref & Link
From:
Tabatha Persad ####@####.####
Date:
17 Jan 2003 02:49:32 -0000
Message-Id: <1042772050.23276.8.camel@mysticchild.dbsoftware.com>
Hi Jacob,
Know the feeling, still post here too when I have my blonde moments.
Do you need to have the endterm? Try this, make your ids look like:
<section id="whatever">
<title>The Whatever Section</title>
Then when you want to cross ref to it, insert:
<xref linkend="whatever" />
This will give you the section number, rather than the name. If you
really must have the endterm, you have to make your section look like:
<section id="whatever">
<title>The Whatever Section</title>
<titleabbrev id="sect_whatever">Whatever Section</titleabbrev>
Then when you cross ref to it, insert:
<xref linkend="whatever" endterm="sect_whatever" />
This will then display what was in quotes for endterm instead of just
"Section 1.1" (or whatever number is designated).
Hope that helps!
Tabatha
On Thu, 2003-01-16 at 14:10, Jacob C wrote:
> Hi All,
>
> My apologies for posting so much over the past few days but I am at that stage in the laerning curve where it's the steepest and besides, you all give such great advice :-)
>
> I am having a problem with establishing links to content within a docbook. I have the following XML:
>
> <section>
> <title>Error & Parse Time Logging</title>
> <para>All logging in the system is file based. For further information on how the logs are stored see <xref linkend="storinglogs" endterm="storinglogs.title"></xref>.</para>
> </section>
> <section id="storinglogs">
> <title id="storinglogs.title">Storing of Log Files (NFS)</title>
> <para></para>
> </section>
>
> I also tried:
>
> <link linkend="storinglogs" endterm="storinglogs.title"></link>
>
> I receive:
>
> XRef LinkEnd to missing ID 'storinglogs'
>
> I read somewhere that the ID needs to be defined in the DTD but that doesn't make any sense to me.
>
> Your help is much appreciated,
> Jacob
--
Tabatha Persad
Web: www.merlinmonroe.com
Linux Documentation Project Review Coordinator (http://www.tldp.org)
Gnu Writing Movement Contributor (http://gwm.gnu.org)
Linux Counter Area Manager US:wa (http://counter.li.org)