OASIS Mailing List ArchivesView the OASIS mailing list archive below
or browse/search using MarkMail.

 


Help: OASIS Mailing Lists Help | MarkMail Help

docbook-apps message

[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [Elist Home]


Subject: Re: DOCBOOK-APPS: 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


[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [Elist Home]


Powered by eList eXpress LLC