From user-return-3231-apmail-forrest-user-archive=forrest.apache.org@forrest.apache.org Sun Feb 12 10:56:23 2006 Return-Path: Delivered-To: apmail-forrest-user-archive@www.apache.org Received: (qmail 10848 invoked from network); 12 Feb 2006 10:56:23 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 12 Feb 2006 10:56:23 -0000 Received: (qmail 52066 invoked by uid 500); 12 Feb 2006 10:56:22 -0000 Delivered-To: apmail-forrest-user-archive@forrest.apache.org Received: (qmail 52031 invoked by uid 500); 12 Feb 2006 10:56:21 -0000 Mailing-List: contact user-help@forrest.apache.org; run by ezmlm Precedence: bulk list-help: list-unsubscribe: List-Post: Reply-To: user@forrest.apache.org List-Id: Delivered-To: mailing list user@forrest.apache.org Received: (qmail 52022 invoked by uid 99); 12 Feb 2006 10:56:21 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 12 Feb 2006 02:56:21 -0800 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received-SPF: neutral (asf.osuosl.org: local policy) Received: from [65.77.211.84] (HELO www2.kc.aoindustries.com) (65.77.211.84) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 12 Feb 2006 02:56:20 -0800 Received: from fo2.kc.aoindustries.com (www2.kc.aoindustries.com [65.77.211.84]) by www2.kc.aoindustries.com (8.13.1/8.13.1) with ESMTP id k1CAtvG2001730 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO) for ; Sun, 12 Feb 2006 04:55:57 -0600 Received: from localhost (localhost [[UNIX: localhost]]) by fo2.kc.aoindustries.com (8.13.1/8.13.1/Submit) id k1CAtuKl001646 for user@forrest.apache.org; Sun, 12 Feb 2006 04:55:56 -0600 X-Authentication-Warning: fo2.kc.aoindustries.com: indexgeo set sender to crossley@apache.org using -f Date: Sun, 12 Feb 2006 21:55:38 +1100 From: David Crossley To: user@forrest.apache.org Subject: Re: XSL transformation as part of the page content? Message-ID: <20060212105538.GA28387@igg.indexgeo.com.au> References: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.4.2.1i X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N Victor Okunev wrote: > Hi All, > > I have an XSLT style sheet that I use to generate an HTML table. Is it > possible with Forrest v0.7 to perform the transformation as part of > the site build and include the results under a document's section? > Here is a pseudo code that kind of illustrates what I am after: > > index.xml > > > > "http://forrest.apache.org/dtd/document-v20.dtd"> > >
> Page Title >
> >
> Section Title > >
> >
Yes, the Cocoon sitemap enables this and more. This is a good situation to explain the powers of teh Cocoon sitemap. Remove that pseudo-stuff and with another section. The data table will be inserted in the top of the first section. Here is the data file xdocs/one-data.xml Foo Here is the relevant section of the sitemap ... Browser request is localhost:8888/one-announce.html So that generates an aggregated xml stream like this ... ... the normal source xdoc, e.g. one-announce.xml Foo The add-table transformer then strips off the outer wrapper, copies over the content, deals with the first
element and inserts the table by processing the element. It serialises as the "xml-document" which is Forrest's internal format. Forrest takes over and does the rest of the transforming and rendering. That is the general idea. There are probably other ways to do it too. The new dispatcher will be even more versatile. -David