Return-Path: Delivered-To: apmail-xml-forrest-dev-archive@xml.apache.org Received: (qmail 85119 invoked by uid 500); 8 Jan 2003 04:26:31 -0000 Mailing-List: contact forrest-dev-help@xml.apache.org; run by ezmlm Precedence: bulk list-help: list-unsubscribe: list-post: Reply-To: forrest-dev@xml.apache.org Delivered-To: mailing list forrest-dev@xml.apache.org Received: (qmail 85110 invoked from network); 8 Jan 2003 04:26:30 -0000 Received: from new-smtp1.ihug.com.au (203.109.250.27) by daedalus.apache.org with SMTP; 8 Jan 2003 04:26:30 -0000 Received: from p81-apx1.syd.ihug.com.au (expresso.localdomain) [203.173.140.81] by new-smtp1.ihug.com.au with esmtp (Exim 3.22 #1 (Debian)) id 18W7nW-0001rm-00; Wed, 08 Jan 2003 15:26:37 +1100 Received: from jeff by expresso.localdomain with local (Exim 3.35 #1 (Debian)) id 18W7pR-0001ey-00 for ; Wed, 08 Jan 2003 15:28:33 +1100 Date: Wed, 8 Jan 2003 15:28:28 +1100 From: Jeff Turner To: forrest-dev@xml.apache.org Subject: Re: site and book documents Message-ID: <20030108042828.GC2942@expresso.localdomain> Mail-Followup-To: forrest-dev@xml.apache.org References: <20030107215014.14199.qmail@webmail-au.server-secure.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20030107215014.14199.qmail@webmail-au.server-secure.com> User-Agent: Mutt/1.4i X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N On Wed, Jan 08, 2003 at 07:50:14AM +1000, Keiron Liddle wrote: > Hi, > > I have had a look at creating books or collections of documents. The > idea is to be able to create book.pdf's and a site.pdf. Just to clarify.. site.pdf contains content for the whole site? And book.pdf for the whole subdir? > This is just an attempt to look at the problem. > > The normal tabs.xml and book.xml seem to have the wrong information for this. > > I couldn't find a good way to handle it through the book.xml. For a few reasons: > - it may contain external or other different url's > - it would need to do some processing to get the actual xml input > - it could be self referencing > > Instead I thought that it could work with different files with the same > format. Instead ref-tabs.xml and ref-book.xml are used to refer to the > xml files to be included. A stylesheet can then convert the > ref-tabs.xml into a document containing all the referenced xml > documents, the combined document can then be converted as normal. That does seem better. > Problems: > - it gets an error due to not finding the dtd files, some resolver problem I noticed that too when trying to use document('book.xml'). It looks like the XSLT engine hasn't been told by Cocoon to use the catalog EntityResolver. > - documents in other directories can be included so that relative links will be wrong > - if it refers to a generated xml (eg. todo.xml) then it cannot load the xml > - the url does not relate to the resource > - it means there are two books that need maintaining > > There are probably better names for the parts. > Can anyone see a better way of doing this? I think it would be better to let the sitemap do all the XML merging, transforming etc. At: http://cvs.apache.org/~jefft/forrest/samples/merge.tgz there is a sample project with a 'BookView' menu entry, which has a HTML and PDF containing all merged content in the directory. Generated PDF at: http://cvs.apache.org/~jefft/forrest/samples/book.pdf This is implemented with the XPathDirectoryGenerator in Cocoon scratchpad. This isn't a full solution though, because formats other than doc-v11 won't be integrated. That would be easy with a , but I'm not sure how to aggregate dynamically. --Jeff > Anyway I think this sort of things should be considered. > > I have attached a sample of how it could be done. With an example in the fresh site. > > Keiron > >