Thanks Jay,
Thanks for the example, and quick reply, this is what I thought as well.
As far as FOP having an "instant TOC" generator feature. My conclusion is 'no', in that you need
to use xslt transform(s) to build the document/FO structure (including TOC and index) and then render it in its final form using FOP if needed.
- Mike
---------------------------------------------------------------------
Hi, Mike,
It may be a larger example than you would like, but I used the first
method you mention to create the stylesheet that lets FOP produce a PDF
version of the XSLT 1.0 spec. You can find it at:
http://www.bryantcs.com/fop/SpecToPDF.xsl
Search for the following content and you'll run right into the templates:
<!-- Contents Templates -->
Search for the first instance of <xsl:apply-templates mode="contents" />
to see where in the document the ToC gets inserted.
That example uses the same trick and the Fox extension to produce
bookmarks, if you're interested in those, too.
HTH
Jay Bryant
Bryant Communication Services
(presently consulting at Synergistic Solution Technologies)
-------------------------
Subject
Generating table of contents using FO and FOP?
Hello,
I'm looking for the best way to generate a table of contents.
The impression I have is that XSL and mode is the way to do this.
Can this also be done with XSL-FO tree and FOP?
If so, Is there any good "free" examples on how to do this?
TIA
- Mike
- Re: Generating table of contents using FO and FOP? Mike J Boyersmith
- Re: Generating table of contents using FO and FOP? Mike J Boyersmith
- Re: Generating table of contents using FO and F... JBryant
- Re: Generating table of contents using FO a... Mike J Boyersmith
