On Wed, Oct 01, 2003 at 04:57:58PM -1000, Don Brown wrote:
> In the FAQ, there is a question about building the whole site or selected
> pages as PDF. While the answer covers building the whole site as PDF, as
> far as I can tell, it is not possible, without touching sitemaps, to
> generate sections or tabs as PDF.
>
> Jeff seems to hint at possible solutions in the future,
> http://marc.theaimsgroup.com/?l=forrest-dev&m=105516618908652&w=2, but I
> didn't see anything after that.
The mechanics are all in place. It just requires a bit of sitemap
hacking.
If you look in aggregate.xmap, you'll see how the whole-site PDF works:
If you view cocoon://abs-linkmap ('forrest run', then
http://localhost:8888/abs-linkmap), you'll see it is a normalized view of
site.xml, listing each page in the site. You could trim that XML down to just
the required section with:
(that being an XPath matching nodes to let through; see XPathTransformer.java
for details)
The pipeline with this modification could then be saved in sitemap.xmap,
matching the pattern 'usermanual.xml' or whatever.
Does that give you enough to go on? I could whip up a sample if you
like.
Cheers,
--Jeff
>
> Am I missing something?
>
> Don
>