This is the mail archive of the
docbook-apps@lists.oasis-open.org
mailing list .
Re: Adding an attribute to links
- From: Bob Stayton <bobs at caldera dot com>
- To: Michael Schuerig <schuerig at acm dot org>
- Cc: docbook-apps at lists dot oasis-open dot org
- Date: Mon, 20 Jan 2003 10:24:42 -0800
- Subject: Re: DOCBOOK-APPS: Adding an attribute to links
- References: <200301201056.06151.schuerig@acm.org>
On Mon, Jan 20, 2003 at 10:56:06AM +0100, Michael Schuerig wrote:
>
> I'd like to add a title attribute to link/ulink/olink that is used as
> title attribute in the generated <a href="..." title="...">. I've found
> the templates that handle links in xref.xsl. Extending these templates
> in a copy & change fashion looks easy, but I'd prefer a modular way of
> hooking into them. From my experience I don't see such a way, but maybe
> someone else knows better.
I don't see an easy way of hooking in. Currently the
match="link" template will generate a title attribute
for the anchor tag if the target of the link has a
title element. So you will have to override that
behavior. Unfortunately, when it applies templates
in "object.title.markup.textonly" mode, it is using
the target of the link, not the link itself.
--
Bob Stayton 400 Encinal Street
Publications Architect Santa Cruz, CA 95060
Technical Publications voice: (831) 427-7796
The SCO Group fax: (831) 429-1887
email: bobs@sco.com