Hello Jeff,

> I'm using DocBook XSL 1.7.2.0 with FOP 0.93. When I generate a PDF,
> the indexterm elements have extra whitespace (from line breaks and
> tabs). I successfully removed the whitespace by editing one of the
> DocBook stylesheet templates. However, the page numbers in the index
> are missing. Also, FOP warns about unresolved ID references, such as
> this warning:
>
> WARNING: Page 9: Unresolved id reference "d0e127" found.
>
> When I open the FO file, here's what one of the index entries looks
> like:
>
> <fo:block
> xmlns:fox="http://xmlgraphics.apache.org/fop/extensions";>Administration
> Console, <fo:basic-link
> internal-destination="d0e127"><fo:page-number-citation
> ref-id="d0e127"/></fo:basic-link></fo:block
>
> Here's the internal destination it's pointing to in the file:
>
> <fo:inline id="d0e127"><!--Administration Console--></fo:inline>

I suspect that the inline is dropped because it has no content. You
can verify this by inserting a zero-width space (200B hex) after the
opening tag and rebuilding the PDF. If it works for that destination,
you can change the indexterm template so it will generate these ZWSPs
automatically.

If it doesn't work, let the indexterm template generate wrappers
instead of inlines and switch to fop-trunk (FOP 0.93 drops empty
wrappers, but the trunk version keeps them if they have an id).

The missing page numbers are another thing. I had a similar (but not
the same) problem with FOP 0.20.5, which was caused by the fact that
the basic-link element had no content other than the
page-number-citation. This too was solved by inserting a ZWSP (my
template inserts it after the page-number-citation, but I suppose it
works just as well if you place it before).

I hope this helps you a little in finding a solution.


Kind regards,
Paul Vinkenoog

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to