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: how to do a glossary with htmlhelp.xsl?


Denis, 
Try this. We use it for "popups" in plain html (that we know will only
be used on recent versions of IE), so it should work for html help:

 <xsl:template match="glossterm[@linkend]">

    <xsl:variable name="targets" select="id(@linkend)"/>
    <xsl:variable name="target" select="$targets[1]"/>

    <xsl:call-template name="check.id.unique">
      <xsl:with-param name="linkend" select="@linkend"/>
    </xsl:call-template>

	<DFN class="glossterm">

     <xsl:attribute name="title">
		<xsl:value-of
select="normalize-space(id(@linkend)/glossdef)"/>
     </xsl:attribute>

     <xsl:call-template name="inline.charseq"/>
    </DFN>
 </xsl:template>

For cross browser popups, there's a technique explained at
http://www.people.virginia.edu/~jfo/asee/tballoons.htm, but I haven't
tried to put it in an xsl yet.

David

-----Original Message-----
From: Jirka Kosek [mailto:jirka@kosek.cz]
Sent: Monday, September 03, 2001 3:24 AM
To: Bradford, Denis
Cc: docbook-apps@lists.oasis-open.org
Subject: Re: DOCBOOK-APPS: how to do a glossary with htmlhelp.xsl?


"Bradford, Denis" wrote:

> HTML Help appears to support popups for displaying glossary terms, and
> that's probably the way we want to go, although we might settle for
> something quick and dirty like a glossary page.
> 
> Before I look into customizing the stylesheets, I'd like to confirm
that
> there isn't an out-of-the-box implementation of a glossary using
> htmlhelp.xsl.

No, there is no out-of-the-box implementation. It would be quite easy to
add to each ocurrence of term marked by something like firstterm or
glossterm code which will produce pop-up box with description taken from
glossary.
 
> If anyone has done some customization for HTML Help glossaries or
similar
> beast, I would welcome some guidance.

If you look at the documentation which is shipped with HTML Help
Workshop, you will see how pop-ups are encoded in result HTML for HTML
Help Compiler. Then you must customize XSLT stylesheets to generate this
code for appropriate elements. It shouldn't be hard to do it,
unfortunatelly I'm too busy to do this now by myself.

					Jirka

-----------------------------------------------------------------
  Jirka Kosek  	                     
  e-mail: jirka@kosek.cz
  http://www.kosek.cz

----------------------------------------------------------------
To subscribe or unsubscribe from this elist use the subscription
manager: <http://lists.oasis-open.org/ob/adm.pl>



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


Powered by eList eXpress LLC