This is the mail archive of the
docbook-apps@lists.oasis-open.org
mailing list .
Re: [docbook-apps] Annotation System: Modifying creation of links
- From: Bob Stayton <bobs at sco dot com>
- To: Joachim Ziegler <ziegler at mpi-sb dot mpg dot de>
- Cc: docbook-apps at lists dot oasis-open dot org
- Date: Thu, 30 Oct 2003 09:20:47 -0800
- Subject: Re: [docbook-apps] Annotation System: Modifying creation of links
- References: <3FA1179E.6020307@mpi-sb.mpg.de> <3FA119DA.1020303@mpi-sb.mpg.de>
On Thu, Oct 30, 2003 at 03:02:02PM +0100, Joachim Ziegler wrote:
> I forgot to say that we would like to come up with a general solution
> that we can give back to the Docbook community and that can be installed
> and used easily by everyone.
>
> So we would prefer a solution where one does not need to dive deeply
> into the XSLT-code and alter 500.000 places there. We would rather like
> to *extend* the stylesheets.
I would suggest modifying the template named 'href.target'
in html/chunk-common.xsl. It is used to generate all
href attributes for references to chunks. It isn't a
very long template.
Create a new stylesheet parameter such as
'chunk.href.prefix', and if that parameter is not empty,
prepend it to the href uri in the href.target template.
You'll notice that the template calculates a relative uri
in case the "from" chunk is in a different output directory
from the "to" chunk. I'm not clear what the behavior of a
prefix would be in such situations. Maybe a prefix should
override such relative calcs?
--
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
To unsubscribe from this list, send a post to docbook-apps-unsubscribe@lists.oasis-open.org, or visit http://www.oasis-open.org/mlmanage/.