This is the mail archive of the
docbook@lists.oasis-open.org
mailing list for the DocBook project.
[docbook] Re: Customising XSL sheets - Figures
- From: Aidan Lister <aidanis at gmail dot com>
- To: docbook at lists dot oasis-open dot org
- Date: Thu, 2 Dec 2004 12:41:26 +1100
- Subject: [docbook] Re: Customising XSL sheets - Figures
- Domainkey-signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:reply-to:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:references; b=WvVpd2d15dytUf7xQqrzthYSWc6gUQ/Wn807WXwP1Ys9FPhKxLjqKnt12gFk/NiRpAgbA7fOxrNPN+7FfWinPVDIBxIs7fzAxuTnXxoYYXIOtaoSDbSG06+TmIBD2+dLmaOih8+iFlme8F/PU8ki0SBe1ovaMQ6kJwwguWndriw=
- References: <40c9f8404120117105619f3c6@mail.gmail.com>
- Reply-to: Aidan Lister <aidanis at gmail dot com>
Hello again,
I seem to have worked this one out for myself.
A <textobject> isn't meant to be the caption, suprisingly, that's what
<caption> is for. The <textobject> will be converted to a new file if
it contains anything other than <phrase>, and <phrase> is used as the
alt on the displayed <imageobject>.
In the end, it looks like:
<figure id="figure.7a" label="7a">
<title>Anatolia</title>
<mediaobject>
<imageobject>
<imagedata fileref="mars/data/figure07a-anatoliamap.jpg" format="JPG" />
</imageobject>
<textobject>
<phrase>NASA location map</phrase>
</textobject>
<caption>
<para>NASA location map for the surface depression called Anatolia.</para>
</caption>
</mediaobject>
</figure>
A bit of tag soup, but for all intents and purposes does the job.
-- Aidan
On Thu, 2 Dec 2004 12:10:00 +1100, Aidan Lister <aidanis@gmail.com> wrote:
> Hello list,
>
> When making use of the <figure> element, the <textobject> is placed on
> a separate page. I'd prefer it was just displayed under the figure.
>
> I tried tracking it down through the XSL, but it jumps all over the
> place and I wasn't quite sure where it was happening.
>
> Here's an example:
>
> <figure id="figure.7a" label="7a">
> <title>Anatolia</title>
> <mediaobject>
> <imageobject>
> <imagedata fileref="mars/data/figure07a-anatoliamap.jpg" />
> </imageobject>
> <textobject>
> <para>NASA location map for the surface depression called
> Anatolia.</para>
> </textobject>
> </mediaobject>
> </figure>
>
> When parsed, this created a page called ld-id2859198.html and placed a
> link "[D]" under the figure rather than the text. I assume "ld" means
> "longdesc".
>
> If there's a parameter to disable this, that would be great, otherwise
> any tips of which part of the style sheets to customise would be
> appreciated.
>
> Kind Regards,
> Aidan Lister
>