This is the mail archive of the
docbook-apps@lists.oasis-open.org
mailing list .
Re: sidebar in pop up window
- From: Bob Stayton <bobs at caldera dot com>
- To: agon glo <agonglo at hotmail dot com>, docbook-apps at lists dot oasis-open dot org
- Date: Mon, 02 Sep 2002 00:35:07 -0700
- Subject: Re: DOCBOOK-APPS: sidebar in pop up window
- References: <F54Z1i6bdVJWrGW6Ex30000044c@hotmail.com>
On Sun, Sep 01, 2002 at 04:27:09PM -0400, agon glo wrote:
> Hello,
>
> I'd like to display the <sidebar> element content in a pop up window.
>
> Any suggestions on how I can accomplish that with DocBook stylesheets.
That's not a a built-in feature, so you would have
to write a customization to do that.
You need to write a replacement XSL template
for <xsl:template match="sidebar"> (the original is
in html/block.xsl in the DocBook XSL distribution, but
it doesn't do much).
The things it would need to do include:
1. Figure out a unique filename for each popup.
2. Call the 'write.chunk' template with the correct set of
parameters, including the content.
3. Generate an anchor of some sort so the user knows there
is a sidebar and can click to reach it. The anchor might
look like this:
<a href="sidebar.filename.html" target="sidebar">Sidebar title</a>
An easier but slower way would be to submit a feature
request to the docbook sourceforge site at
http://sourceforge.net/projects/docbook/. No guarantee
that it would be implemented, or when.
--
Bob Stayton 400 Encinal Street
Publications Architect Santa Cruz, CA 95060
Technical Publications voice: (831) 427-7796
Caldera International, Inc. fax: (831) 429-1887
email: bobs@caldera.com