[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]
Subject: HTML links not being created in my indexes
Hi, I am trying to generate HTML from XML Docbook DTD 4.4 using Docbook XSL 1.69.1. Unfortunately none of the index entries in the generated index are actual functional links to the referenced sections. Blaine Simpson seemed to have had the same problem, but it wasn't solved (http:// sourceware.org/ml/docbook/2004-04/msg00027.html). Here's an example: <?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE book PUBLIC "-//OASIS//DTD DocBook XML V4.4//EN" "http:// www.oasis-open.org/docbook/xml/4.4/docbookx.dtd" [ ]> <book> <chapter> <title>Title</title> <para>First Para <indexterm> <primary>IndexTerm in first para</primary> </indexterm> </para> <sect1> <title> <indexterm> <primary>IndexTerm in sect1 title</primary> </indexterm> </title> <para>Sect1 para <indexterm> <primary>IndexTerm in sect1 para</primary> <secondary>IndexTerm in sect1 para</secondary> </indexterm> </para> </sect1> </chapter> <index/> </book> Simply run this against docbook xsl 1.69.1 (I am using Java 1.4.2 as XSL processor) with the regular HTML set of stylesheets and this will be the (reformatted) result: <html> <head> <META http-equiv="Content-Type" content="text/html; charset=ISO-8859-1"> <title></title> <meta content="DocBook XSL Stylesheets V1.69.1" name="generator"></head> <body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF"> <div class="book" lang="en"> <div class="titlepage"> <div></div> <div></div> <hr></div> <div class="toc"> <p> <b>Table of Contents</b> </p> <dl> <dt> <span class="chapter"> <a href="#N10003">1. Title</a> </span> </dt> <dd> <dl> <dt> <span class="sect1"> <a href="#N1000D"> </a> </span> </dt> </dl> </dd> <dt> <span class="index"> <a href="#N1001E">Index</a> </span> </dt> </dl> </div> <div class="chapter" lang="en"> <div class="titlepage"> <div> <div> <h2 class="title"> <a name="N10003"></ a>Chapter 1. Title</h2> </div> </div> <div></div> </div> <div class="toc"> <p> <b>Table of Contents</b> </p> <dl> <dt> <span class="sect1"> <a href="#N1000D"> </a> </span> </dt> </dl> </div> <p>First Para <a name="N10008" class="indexterm"></a> </p> <div class="sect1" lang="en"> <div class="titlepage"> <div> <div> <h2 class="title" style="clear: both"> <a name="N1000D"></a> <a name="N10010" class="indexterm"></a> </h2> </div> </div> <div></div> </div> <p>Sect1 para <a name="N10017" class="indexterm"></a> </p> </div> </div> <div class="index"> <div class="titlepage"> <div> <div> <h2 class="title"> <a name="N1001E"></ a>Index</h2> </div> </div> <div></div> </div> <div class="index"> <div class="indexdiv"> <h3>I</h3> <dl> <dt>IndexTerm in first para</ dt> <dt>IndexTerm in sect1 para</ dt> <dd> <dl> <dt>IndexTerm in sect1 para</dt> </dl> </dd> <dt>IndexTerm in sect1 title</dt> </dl> </div> </div> </div> </div> </body> </html> Please note that <dt> enclosed indexterm in the index are not links, but merely plain text. Any ideas what's going wrong? Thanks, your help is appreciated! -hendrik
[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]