Re: [docbook-apps] Bad index generation.

From
"Cob Rtayton"
Date
2007-03-27T02:14:58+00:00
ID
012101c7701e$0916fde0$6400a8c0@totoro
Thread
Re: [docbook-apps] Bad index generation.
This looks like a bug.  Are all entries lost, or just those with zone 
attributes?

It would be good if you could file a bug report on the DocBook SourceForge 
site so that it can be tracked and fixed.

Bob Stayton
Sagehill Enterprises
DocBook Consulting


----- Original Message ----- 
From: "M.Canales.es" <>
To: <>
Sent: Monday, March 26, 2007 2:10 PM
Subject: [docbook-apps] Bad index generation.

Hi,

Using DocBook XSL Stylesheets Vsnapshot_6761.

Playing with the index generation code I found something that looks a bug.

Having an index tag like this:

<index type="package"/>

and indexterm entries like this

  <indexterm zone="ch-system-bash" type="package">
    <primary>Bash</primary>
  </indexterm>

  <indexterm zone="ch-tools-bash" type="package">
    <primary>Bash</primary>
    <secondary>tools</secondary>
  </indexterm>

when rendering the book using

$ xsltproc --xinclude --nonet -stringparam generate.index 1
snapshot/xhtml/docbook.xsl index.xml > book.html

the Index is generated properly, but when using

$ xsltproc --xinclude --nonet -stringparam generate.index 1
-stringparam index.on.type 1 snapshot/xhtml/docbook.xsl index.xml > 
book.html

the links on the Index entries are lost. The HTML generated looks like 
this:

        <div class="index">
          <div class="indexdiv">
            <h3>
              B
            </h3>
            <dl>
              <dt>
                Bash, <a class="indexterm" href="#"></a>
              </dt>
              <dd>
                <dl>
                  <dt>
                    tools, <a class="indexterm" href="#"></a>
                  </dt>
                </dl>
              </dd>
            </dl>
          </div>
        </div>
      </div>

-- 
Manuel Canales Esparcia
Usuario de LFS nº2886:       http://www.linuxfromscratch.org
LFS en castellano: http://www.escomposlinux.org/lfs-es 
http://www.lfs-es.info
TLDP-ES:                           http://es.tldp.org

---------------------------------------------------------------------
To unsubscribe, e-mail: 
For additional commands, e-mail: