This is the mail archive of the
docbook-apps@lists.oasis-open.org
mailing list .
Re: [docbook-apps] Request for help with olink target data file and @href attribute
On Wed, Sep 17, 2003 at 07:42:20PM -0400, Taro Ikai wrote:
> I am trying to generate a valid olink target data file for use with HTML
> Help output.
> I am using a customization of:
>
> docbook-xsl/htmlhelp/htmlhelp.xsl
>
> I've run into a problem where the target data file for my document ends up
> with
> the @href attribute values that contain the fragment id, but not the
> document
> specifier:
>
> <div element="section" href="#foo" number="" targetptr="foo">
> <ttl>Foo</ttl>
> <xreftext>Foo</xreftext>
> </div>
>
> I think the @href attribute shoud look something like:
>
> <div element="section" href="mydoc.html#foo" number="" targetptr="foo">
>
> How should I proceed?
The current HTML Help stylesheet is not capable
of generating an olink data file itself. That
is because it has its own template for the root element,
which is what triggers the collection process in the
html stylesheets. If people are going to use olinks
with htmlhelp.xsl, then that code needs to be added.
But htmlhelp.xsl is based on the chunk.xsl stylesheet.
So you should use chunk.xsl to generate
the target data file. Just set the stylesheet parameter
collect.xref.targets="only", then it will generate
hrefs in the style you need for use with htmlhelp.xsl.
I have not tried olinks with htmlhelp. Let me know
if it works or not.
--
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.