This is the mail archive of the docbook-apps@lists.oasis-open.org mailing list .


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Adding an attribute to links


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]