[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

Re: Linebreaks in TOC

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

    <xsl:template match="idx/item">
    <fo:block 
      start-indent="0.5in" 
      end-indent="0.5in" 
      font-size="{$base-font-spec}"
      text-align-last="justify">
      <xsl:apply-templates/>
    <fo:leader leader-pattern="dots"/><fo:basic-link
    internal-destination="{@idref}"> <fo:page-number-citation color="blue"
   ref-id="{@idref}"/></fo:basic-link>
   </fo:block>
    </xsl:template>


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)

Sebastian?

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.

David

 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list


Current Thread

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.