This is the mail archive of the docbook-apps@lists.oasis-open.org mailing list .


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

RE: Problem with <indexterm zone=""> in HTML Help


If you look in the HTMLHelp stylesheets, the index is built by placing
ActiveX object references in the HTML, which the HTMLHelp compiler picks up
to automatically create the index.  The only way to support the "zone"
attribute would be to put something like:

  <xsl:apply-templates select="//indexterm[contains(@zone, $id)]"/>

into each and every section.  That would take roughly forever for a document
of any size, I imagine.

You may have to re-write the entire indexing section of HTML help to build
an HHK file rather than rely on the automatic index generation if you really
need to use the zone attribute.

Jeff Beal
Ansys, Inc.
(724)514-3150
jeff.beal@ansys.com

-----Original Message-----
From: Kraa de Simon [mailto:Simon.de.Kraa@services.fujitsu.com]
Sent: Tuesday, May 07, 2002 12:51 PM
To: docbook-apps@lists.oasis-open.org
Subject: DOCBOOK-APPS: Problem with <indexterm zone=""> in HTML Help

Hello,

Using DocBook XSL 1.50.0 and DocBook XML 4.1.2.

For some reason the <indexterm zone=""> does work for html output and NOT
for html help output?

Any ideas how to solve this?

Thanks,

Simon.

>From html:

        Index
        A
        a, s2.1.1                       OK, jumps to s2.1.1
        another test, s1.1.2            OK, jumps to s1.1.2
        B
        b, s2.1.2                       OK, jumps to s2.1.2

>From html help:

        Index
        a                               NOK, jumps to table of contents for
chapter 1
        another test                    OK, jumps to s1.1.2
        b                               NOK, jumps to table of contents for
chapter 1

The XML sample:

<?xml version="1.0"?>
<!DOCTYPE book SYSTEM "http://hol01sro/docbook/docbkx412/docbookx.dtd";>
<book>
<chapter><title>ch1</title>
        <indexterm zone="a"><primary>a</primary></indexterm>
        <indexterm zone="b"><primary>b</primary></indexterm>
        <section><title>s1</title>
                <section><title>s1.1</title>
                        <section><title>s1.1.1</title>
                                <para>test</para>
                        </section>
                        <section><title>s1.1.2</title>
                                <para><indexterm><primary>another
test</primary></indexterm></para>
                        </section>
                </section>
        </section>
        <section><title>s2</title>
                <section><title>s2.1</title>
                        <section id="a"><title>s2.1.1</title>
                                <para>test</para>
                        </section>
                        <section><title>s2.1.2</title>
                                <para id="b">test</para>
                        </section>
                </section>
        </section>
</chapter>
<index><title>Index</title>
</index>
</book>


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]