xsltproc and whitespace with <indexterm>

Jeffrey Walton <[email protected]>
Newsgroups gmane.comp.gnome.lib.xslt
Message-ID <CAH8yC8=s_upbJgXRF0Rxk0zuhLYNCkspq6V-fUFinVnsS2zceA@mail.gmail.com>
Hi All,

I'm using xsltproc 2.7.6 and fop {0.95|1.0} on Ubuntu 10.04 (x64). I'm
producing PDFs using docbook.xsl located at
/usr/share/xml/docbook/stylesheet/docbook-xsl-ns/fo/docbook.xsl.

When I add index terms between elements such as <chapter> or <section>
and <para>, the whitespace is showing up in the finished document.
That is, I will not see 'standard' spacing between a {chapter|section}
title and the first paragraph (which looks like it should be one
line). I will see double/triple spaced lines between the title and the
first paragraph. I also see similar between paragraphs.

I thought the whitespace between tags was extraneous and would be
silently discarded (for example, the whitespace caused by <indexterm>
below). Is this not the case?

Are there any work arounds to get back to standard line spacing?

Jeff

  <section id="section_xxx">
    <title>Section Title</title>

    <indexterm>
      <primary>Term 1</primary>
    </indexterm>

    <indexterm>
      <primary>Term 2</primary>
    </indexterm>

    <para>...</para>

    <indexterm>
      <primary>Term 3</primary>
    </indexterm>

    <para>...</para>

  </section>
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.