You are viewing a plain text version of this content. The canonical link for it is here.
Posted to fop-dev@xmlgraphics.apache.org by Dave Halsted <DH...@CENTROMINE.com> on 2000/06/07 17:34:36 UTC

Generating table of contents?

I'm generating a multi-page document using the following:

    <xsl:apply-templates mode="tableOfContents" />
    <xsl:apply-templates />

running against XML that looks like
<documentation>
	<section name="foo">
	</section>
	<section name="bar">
	</section>
</documentation>

The templates in the tableOfContents mode create a list of section names on
one page; the rest of the templates create the  sections, with page breaks
forced at each new section.  Each section may run over more than one page.

Any easy (XSLT) way to get the table of contents to include the page
numbers?

Thanks,
Dave Halsted