re: table of contents

Subject: re: table of contents
From: "Hilton, Peter" <HiltonP@xxxxxxxxxx>
Date: Wed, 8 Dec 1999 18:09:06 -0000
>From: "Hadar, Oren" <ohadar@xxxxxxxxxxxxxxxxxxxxxxxxx>
>Date: Thu, 5 Aug 1999 13:41:33 -0400 
>Hi XSL-Listers,

>I am trying to set up a table of contents with XSL, and there are two
things
>I haven't figured out how to do.  These are:
>1. A right-justified page number for each entry.

You can treat each list entry as a list entry, with the table of contents
entry as the list item label, and the page number as the list item body:

<fo:list-item-label>
	<fo:block text-align="start"><xsl:value-of
select="heading"/></fo:block>
</fo:list-item-label>
<fo:list-item-body>
	<fo:block text-align="end"><fo:page-number-citation/></fo:block>
</fo:list-item-body>

Unfortunately, FOP doesn't seem to support fo:page-number-citation :-(

Peter Hilton
http://hilton.org.uk/
(Opinions are mine, not my employer's)


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


Current Thread