This is the mail archive of the
docbook-apps@lists.oasis-open.org
mailing list .
Re: Using XREF to REFNAMEDIV
- From: Jens Emmerich <Jens dot Emmerich at encorus dot com>
- To: Trevor Jenkins <trevor dot jenkins at suneidesis dot com>
- Cc: DOCBOOK-APPS Discussion List <docbook-apps at lists dot oasis-open dot org>
- Date: Mon, 08 Apr 2002 11:08:38 +0200
- Subject: DOCBOOK-APPS: Re: Using XREF to REFNAMEDIV
- References: <Pine.LNX.4.33.0204060008160.13881-100000@suneidesis.demon.co.uk>
Hi Trevor,
most elements don't support XREFs, mostly it just doesn't make much
sense, there's nothing to display as xref-text.
You can always write:
<xref linkend="asamplexref">
They refer to things like the following:
<refnamediv id="asamplexref" xreflabel="sample">
<refname>sample</refname>
<refpurpose>Create new sample</refpurpose>
</refnamediv>
or even:
<xref linkend="asamplexref" endterm="asamplexrefterm">
They refer to things like the following:
<refnamediv id="asamplexref">
<refname id="asamplexrefterm">sample</refname>
<refpurpose>Create new sample</refpurpose>
</refnamediv>
If you always want to refer to the refname, you need to customize the
stylesheets. Unfortunely, there's no modularization regarding xref's
(Is on my whish/to do list). See the patch submitted to SourceForge to
support xrefs to varlistentires automatically for a code example for
what you need to put into a customization layer.
Hope this helps,
Jens
Trevor Jenkins <trevor.jenkins@suneidesis.com> writes:
> In my document there are several occurences of tags like this:
>
> <xref linkend="asamplexref">
>
> They refer to things like the following:
>
> <refnamediv id="asamplexref">
> <refname>sample</refname>
> <refpurpose>Create new sample</refpurpose>
> </refnamediv>
>
> Sadly when I process these with (open)jade 1.3.1, which I ripped from
> sourceforge yeaterday, I get lots of errors saying:
>
> [xref to REFNAMEDIV unsupported]