Re: [xsl] Linebreaks in TOC

Subject: Re: [xsl] Linebreaks in TOC
From: David Carlisle <davidc@xxxxxxxxx>
Date: Thu, 25 Jan 2001 13:27:44 GMT
   I found the following to work pretty well.

    <xsl:template match="idx/item">
    <fo:leader leader-pattern="dots"/><fo:basic-link
    internal-destination="{@idref}"> <fo:page-number-citation color="blue"

Hmm, in passivetex at least page-number-citation makes a link all by
itself, so the above would produce nested links (to the same place).
Looking at the spec again I can't see anything to justify this
(although it seems reasonably useful)


To answer the original posters question, I _think_ that if you ensure
that the  <xsl:apply-templates/> above doesn't put any white space
after your text then there isn't a breakpoint after the last word, and
so if the line is broken then the word (or part of the word) should come
down on to the last line, before the start of the leaders.


 XSL-List info and archive:

Current Thread