I don't think Cocoon is required to get TOC and page numbering. I was just
using it because Cocoon is better documented than the Xwiki API at this
point, and I was interested in creating a solution that could be adapted to
work with any CMS that can export its data in XML format.
It's very possible that Xwiki's existing PDF generation facility could be
enhanced to provide the TOC / page numbering support without too much
difficulty. If I knew the Xwiki API better, I might tackle this myself. But
I have limited time available, and I need something right away, so I'm going
to continue down the Cocoon route, because I've had some encouraging
results. If I can work up something that might be easily adapted for others
to use, I will definitely post it on the Xwiki developer pages.
Stephen
From: Ludovic Dubost <ludovic(a)xwiki.com>
Reply-To: xwiki-dev(a)objectweb.org
To: xwiki-users(a)objectweb.org, xwiki-dev(a)objectweb.org
Subject: [xwiki-dev] Re: [xwiki-users] Need Aggregate PDF's with TOC
Date: Wed, 24 Aug 2005 18:39:44 +0200
Hi Stephen,
Aggregated PDF is clearly something XWiki can do.. Table of Content it can
do it too thanks to Jiri ! But it's true that it's currently not possible
to handle page numbering and adding the numbers to the table of content..
Now this is a really powerful and interesting feature..
I'm highly interested in how this could be done and learning about existing
tools that can do it.. If cocoon can do it, it could be possible to write a
wrapper around the cocoon feature that does it as long as cocoon can accept
the XHTML of XWiki.
Maybe it's not that complex and FOP or PDF can give us some help in this
area with some easy markup.. Any pointers about existing tools that do it
would help me check how this could be put in XWiki.
I'm adding the developers list because developers could have some ideas !
Ludovic
Stephen Schaub wrote:
>I am attempting to use Xwiki as a CMS for software development project
>documentation. A key requirement is to generate aggregate documents with
>page numbers and a table of contents. Currently, Xwiki doesn't seem to
>offer this feature, so I thought I would try using Cocoon to pull
>documents from Xwiki, aggregate them, and generate a PDF. (Cocoon lets
>you get source documents either from the file system, or from http URL's.)
>
>Has anyone attempted this before? I am running into difficulty and am not
>an expert on Xwiki or Cocoon, though I do have some experience with xslt
>technology. Before spinning my wheels too much, I thought I would post
>here to see if there might be a better way to accomplish what I want to
>do.
>
>I really like what I see in Xwiki, but if there is another product that
>might work better for this requirement, I might consider it. I've looked
>at a number of free CMS products, and so far I haven't found any that
>offer the ease of Wiki editing with the kind of aggregate PDF generation I
>want (specifically, TOC with page numbers). Last year in teaching this
>class I used Apache Forrest, but it's not very user friendly. I would love
>to find something that would be easier for the students to use.
>
>Thanks in advance for any suggestions...
>
>Stephen